Package elki.evaluation.scores
Interface ScoreEvaluation
-
- All Known Implementing Classes:
AUPRCEvaluation
,AveragePrecisionEvaluation
,DCGEvaluation
,MaximumF1Evaluation
,NDCGEvaluation
,PrecisionAtKEvaluation
,PRGCEvaluation
,ROCEvaluation
public interface ScoreEvaluation
Compute ranking/scoring based evaluation measures.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ScoreEvaluation.Adapter
Predicate to test whether an object is a true positive or false positive.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default double
evaluate(DBIDs ids, DoubleDBIDList nei)
Evaluate given a list of positives and a scoring.double
evaluate(ScoreEvaluation.Adapter adapter)
Evaluate a given predicate and iterator.double
expected(int pos, int all)
Expected score for a random result.
-
-
-
Method Detail
-
evaluate
double evaluate(ScoreEvaluation.Adapter adapter)
Evaluate a given predicate and iterator.- Parameters:
adapter
- Input data adapter- Returns:
- Score
-
evaluate
default double evaluate(DBIDs ids, DoubleDBIDList nei)
Evaluate given a list of positives and a scoring.- Parameters:
ids
- Positive IDs, usually a set.nei
- Query Result- Returns:
- Score
-
expected
double expected(int pos, int all)
Expected score for a random result.- Parameters:
pos
- Number of positive elementsall
- Total number of elements- Returns:
- Expected score
-
-