Package elki.evaluation.scores
Class AveragePrecisionEvaluation
- java.lang.Object
-
- elki.evaluation.scores.AveragePrecisionEvaluation
-
- All Implemented Interfaces:
ScoreEvaluation
public class AveragePrecisionEvaluation extends java.lang.Object implements ScoreEvaluation
Evaluate using average precision.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAveragePrecisionEvaluation.ParParameterization class.-
Nested classes/interfaces inherited from interface elki.evaluation.scores.ScoreEvaluation
ScoreEvaluation.Adapter
-
-
Field Summary
Fields Modifier and Type Field Description static AveragePrecisionEvaluationSTATICStatic instance
-
Constructor Summary
Constructors Constructor Description AveragePrecisionEvaluation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleevaluate(ScoreEvaluation.Adapter adapter)Evaluate a given predicate and iterator.doubleexpected(int pos, int all)Expected score for a random result.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.evaluation.scores.ScoreEvaluation
evaluate
-
-
-
-
Field Detail
-
STATIC
public static final AveragePrecisionEvaluation STATIC
Static instance
-
-
Method Detail
-
evaluate
public double evaluate(ScoreEvaluation.Adapter adapter)
Description copied from interface:ScoreEvaluationEvaluate a given predicate and iterator.- Specified by:
evaluatein interfaceScoreEvaluation- Parameters:
adapter- Input data adapter- Returns:
- Score
-
expected
public double expected(int pos, int all)Description copied from interface:ScoreEvaluationExpected score for a random result.- Specified by:
expectedin interfaceScoreEvaluation- Parameters:
pos- Number of positive elementsall- Total number of elements- Returns:
- Expected score
-
-