public class ROCEvaluation extends AbstractScoreEvaluation
Modifier and Type | Class and Description |
---|---|
static class |
ROCEvaluation.Parameterizer
Parameterization class.
|
ScoreEvaluation.Predicate<T>, ScoreEvaluation.ScoreIter
Modifier and Type | Field and Description |
---|---|
static ROCEvaluation |
STATIC
Static instance
|
Constructor and Description |
---|
ROCEvaluation() |
Modifier and Type | Method and Description |
---|---|
static <I extends ScoreEvaluation.ScoreIter> |
computeROCAUC(ScoreEvaluation.Predicate<? super I> predicate,
I iter)
Compute the area under the ROC curve given a set of positive IDs and a
sorted list of (comparable, ID)s, where the comparable object is used to
decided when two objects are interchangeable.
|
<I extends ScoreEvaluation.ScoreIter> |
evaluate(ScoreEvaluation.Predicate<? super I> predicate,
I iter)
Evaluate a given predicate and iterator.
|
double |
expected(int pos,
int all)
Expected score for a random result.
|
static <I extends ScoreEvaluation.ScoreIter> |
materializeROC(ScoreEvaluation.Predicate<? super I> predicate,
I iter)
Compute a ROC curve given a set of positive IDs and a sorted list of
(comparable, ID)s, where the comparable object is used to decided when two
objects are interchangeable.
|
evaluate, evaluate, evaluate
public static final ROCEvaluation STATIC
public <I extends ScoreEvaluation.ScoreIter> double evaluate(ScoreEvaluation.Predicate<? super I> predicate, I iter)
ScoreEvaluation
I
- Iterator typepredicate
- Predicate (for positives)iter
- Iteratorpublic static <I extends ScoreEvaluation.ScoreIter> XYCurve materializeROC(ScoreEvaluation.Predicate<? super I> predicate, I iter)
I
- Iterator typepredicate
- Predicate to test for positive objectsiter
- Iterator over results, with ties.public double expected(int pos, int all)
ScoreEvaluation
pos
- Number of positive elementsall
- Total number of elementspublic static <I extends ScoreEvaluation.ScoreIter> double computeROCAUC(ScoreEvaluation.Predicate<? super I> predicate, I iter)
I
- Iterator typepredicate
- Predicate to test for positive objectsiter
- Iterator over results, with ties.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.