Ranking: Difference between revisions

Line 9: Line 9:


==Metrics==
==Metrics==
 
See https://medium.com/swlh/rank-aware-recsys-evaluation-metrics-5191bba16832
===Cumulative Gain===
===Cumulative Gain===
Suppose you have a list of results <math>x_1,..., x_n</math> with relevency <math>r_1,...,r_n</math>.<br>
Suppose you have a list of results <math>x_1,..., x_n</math> with relevency <math>r_1,...,r_n</math>.<br>
Line 32: Line 32:
\end{equation}
\end{equation}
</math>
</math>
===Mean Reciprocal Rank===
{{main | Wikipedia: Mean reciprocal rank}}
If you only have one correct answer which is placed in rank <math>i</math> then the reciprocal rank is <math>1/i</math>.<br>
For multiple queries and results, the mean reciprocal rank is simply <math>\mean(1/rank)</math>.