Package ubic.basecode.math
Class PrecisionRecall
java.lang.Object
ubic.basecode.math.PrecisionRecall
Compute area under precision recall
- Author:
- paul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
averagePrecision
(List<Double> ranksOfPositives) "Average Precision is the average of the precision value obtained for the set of top $k$ documents existing after each relevant document is retrieved, and this value is then averaged over information needs".
-
Constructor Details
-
PrecisionRecall
public PrecisionRecall()
-
-
Method Details
-
averagePrecision
"Average Precision is the average of the precision value obtained for the set of top $k$ documents existing after each relevant document is retrieved, and this value is then averaged over information needs". http://nlp.stanford.edu/IR-book/html/htmledition/evaluation-of-ranked-retrieval-results-1.html and http://en.wikipedia.org/wiki/Information_retrieval#Average_precision- Parameters:
totalSize
-ranks
- of the positives; LOW ranks are considered better. (e.g., rank 0 is the 'best')- Returns:
-