Package elki.evaluation.outlier
Class JudgeOutlierScores
- java.lang.Object
-
- elki.evaluation.outlier.JudgeOutlierScores
-
- All Implemented Interfaces:
Evaluator,ResultProcessor
public class JudgeOutlierScores extends java.lang.Object implements Evaluator
Compute a Histogram to evaluate a ranking algorithm.The parameter
-hist.positivespecifies the class label of "positive" hits.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJudgeOutlierScores.ParParameterization class.static classJudgeOutlierScores.ScoreResultResult object for outlier score judgements.
-
Field Summary
Fields Modifier and Type Field Description private static LoggingLOGLogger for debug output.private java.util.regex.PatternpositiveClassNameStores the "positive" class.private ScalingFunctionscalingScaling function to use
-
Constructor Summary
Constructors Constructor Description JudgeOutlierScores(java.util.regex.Pattern positive_class_name, ScalingFunction scaling)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JudgeOutlierScores.ScoreResultcomputeScore(DBIDs ids, DBIDs outlierIds, OutlierResult or)Evaluate a single outlier score result.voidprocessNewResult(java.lang.Object result)Process a result.
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Logger for debug output.
-
positiveClassName
private java.util.regex.Pattern positiveClassName
Stores the "positive" class.
-
scaling
private ScalingFunction scaling
Scaling function to use
-
-
Constructor Detail
-
JudgeOutlierScores
public JudgeOutlierScores(java.util.regex.Pattern positive_class_name, ScalingFunction scaling)Constructor.- Parameters:
positive_class_name- Positive class namescaling- Scaling function
-
-
Method Detail
-
computeScore
protected JudgeOutlierScores.ScoreResult computeScore(DBIDs ids, DBIDs outlierIds, OutlierResult or)
Evaluate a single outlier score result.- Parameters:
ids- Inlier IDsoutlierIds- Outlier IDsor- Outlier Result to evaluate- Returns:
- Outlier score result
-
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.
-
-