|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.eval.measures.ReciprocalRank
public class ReciprocalRank
The reciprocal rank of a list of ranked items. See http://en.wikipedia.org/wiki/Mean_reciprocal_rank Literature: E.M. Voorhees "Proceedings of the 8th Text Retrieval Conference". TREC-8 Question Answering Track Report. 1999. http://gate.ac.uk/sale/dd/related-work/qa/TREC+1999+TREC-8+QA+Report.pdf
Method Summary | |
---|---|
static double |
compute(java.util.List<java.lang.Integer> ranked_items,
java.util.Collection<java.lang.Integer> correct_items,
java.util.Collection<java.lang.Integer> ignore_items)
Compute the reciprocal rank of a list of ranked items. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double compute(java.util.List<java.lang.Integer> ranked_items, java.util.Collection<java.lang.Integer> correct_items, java.util.Collection<java.lang.Integer> ignore_items)
ranked_items
- a list of ranked item IDs, the highest-ranking item firstcorrect_items
- a collection of positive/correct item IDsignore_items
- a collection of item IDs which should be ignored for the evaluation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |