Margin-infused relaxed algorithm (MIRA)[1] is a machine learning algorithm, an online algorithm for multiclass classification problems. It is designed to learn a set of parameters (vector or matrix) by processing all the given training examples one-by-one and updating the parameters according to each training example, so that the current training example is classified correctly with a margin against incorrect classifications at least as large as their loss.[2] The change of the parameters is kept as small as possible.
A two-class version called binary MIRA[1] simplifies the algorithm by not requiring the solution of a quadratic programming problem (see below). When used in a one-vs-all configuration, binary MIRA can be extended to a multiclass learner that approximates full MIRA, but may be faster to train.
The flow of the algorithm[3] [4] looks as follows:
Input: Training examples
T=\{xi,yi\}
w
i
w(0)
n
N
t
|T|
w(i+1)
w(i)
\{xt,yt\}
i
i+1
| ||||||||||
N x |T| |
The update step is then formalized as a quadratic programming[2] problem: Find
min\|w(i+1)-w(i)\|
score(xt,yt)-score(xt,y')\geqL(yt,y') \forally'
y
y'
y'
y