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 classOutlierRankingEvaluation.ParParameterization class.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringkeyKey prefix for statistics logging.private static LoggingLOGThe logger.private java.util.regex.PatternpositiveClassNameStores 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 voidevaluate(EvaluationResult res, int size, int pos, java.util.function.Supplier<ScoreEvaluation.Adapter> adapter)Produce various evaluation statisticsvoidprocessNewResult(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:ResultProcessorProcess a result.- Specified by:
processNewResultin interfaceResultProcessor- Parameters:
result- Newly added result subtree.
-
-