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.positive
specifies the class label of "positive" hits.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JudgeOutlierScores.Par
Parameterization class.static class
JudgeOutlierScores.ScoreResult
Result object for outlier score judgements.
-
Field Summary
Fields Modifier and Type Field Description private static Logging
LOG
Logger for debug output.private java.util.regex.Pattern
positiveClassName
Stores the "positive" class.private ScalingFunction
scaling
Scaling 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.ScoreResult
computeScore(DBIDs ids, DBIDs outlierIds, OutlierResult or)
Evaluate a single outlier score result.void
processNewResult(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:ResultProcessor
Process a result.- Specified by:
processNewResult
in interfaceResultProcessor
- Parameters:
result
- Newly added result subtree.
-
-