Package elki.evaluation.outlier
Class OutlierRankingEvaluation
- java.lang.Object
-
- elki.evaluation.outlier.OutlierRankingEvaluation
-
- All Implemented Interfaces:
Evaluator
,ResultProcessor
public class OutlierRankingEvaluation extends java.lang.Object implements Evaluator
Evaluate outlier scores by their ranking- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OutlierRankingEvaluation.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
key
Key prefix for statistics logging.private static Logging
LOG
The logger.private java.util.regex.Pattern
positiveClassName
Stores the "positive" class.
-
Constructor Summary
Constructors Constructor Description OutlierRankingEvaluation(java.util.regex.Pattern positive_class_name)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
evaluate(EvaluationResult res, int size, int pos, java.util.function.Supplier<ScoreEvaluation.Adapter> adapter)
Produce various evaluation statisticsvoid
processNewResult(java.lang.Object result)
Process a result.
-
-
-
Field Detail
-
LOG
private static final Logging LOG
The logger.
-
positiveClassName
private java.util.regex.Pattern positiveClassName
Stores the "positive" class.
-
key
private java.lang.String key
Key prefix for statistics logging.
-
-
Method Detail
-
evaluate
private void evaluate(EvaluationResult res, int size, int pos, java.util.function.Supplier<ScoreEvaluation.Adapter> adapter)
Produce various evaluation statistics- Parameters:
res
- Result to output tosize
- Total sizepos
- Number of positive hitsadapter
- Adapter
-
processNewResult
public void processNewResult(java.lang.Object result)
Description copied from interface:ResultProcessor
Process a result.- Specified by:
processNewResult
in interfaceResultProcessor
- Parameters:
result
- Newly added result subtree.
-
-