Ranking: Difference between revisions
No edit summary |
|||
Line 8: | Line 8: | ||
===Pair-wise ranking=== | ===Pair-wise ranking=== | ||
If you data is of the form: <math>y(x_a) > y(x_b)</math> then you can train so that your model maximizes <math>f(x_a) - f(x_b)</math> using a hinge loss: <math>L(x_a, x_b) = max(0, 1-(f(x_a) - f(x_b)))</math> | If you data is of the form: <math>y(x_a) > y(x_b)</math> then you can train so that your model maximizes <math>f(x_a) - f(x_b)</math> using a hinge loss: | ||
<math> | |||
\begin{equation} | |||
L(x_a, x_b) = max(0, 1-(f(x_a) - f(x_b))) | |||
\end{equation} | |||
</math> | |||
==Metrics== | ==Metrics== |