Class PrecisionRecall


  • public class PrecisionRecall
    extends Object
    Compute area under precision recall
    Author:
    paul
    • Constructor Detail

      • PrecisionRecall

        public PrecisionRecall()
    • Method Detail

      • averagePrecision

        public static 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". 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: