org.mymedialite.eval.measures
Class AUC

java.lang.Object
  extended by org.mymedialite.eval.measures.AUC

public class AUC
extends java.lang.Object

Area under the ROC curve (AUC) of a list of ranked items. See http://recsyswiki.com/wiki/Area_Under_the_ROC_Curve


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 area under the ROC curve (AUC) 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

compute

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)
Compute the area under the ROC curve (AUC) of a list of ranked items. See http://recsyswiki.com/wiki/Area_Under_the_ROC_Curve

Parameters:
ranked_items - a list of ranked item IDs, the highest-ranking item first
correct_items - a collection of positive/correct item IDs
ignore_items - a collection of item IDs which should be ignored for the evaluation
Returns:
the AUC for the given data