de.lmu.ifi.dbs.elki.evaluation.outlier
Class JudgeOutlierScores

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.evaluation.outlier.JudgeOutlierScores
All Implemented Interfaces:
Evaluator, ResultProcessor

public class JudgeOutlierScores
extends Object
implements Evaluator

Compute a Histogram to evaluate a ranking algorithm. The parameter -hist.positive specifies the class label of "positive" hits.


Nested Class Summary
static class JudgeOutlierScores.Parameterizer
          Parameterization class.
 class JudgeOutlierScores.ScoreResult
          Result object for outlier score judgements.
 
Field Summary
protected static Logging logger
          Logger for debug output.
static OptionID POSITIVE_CLASS_NAME_ID
          The distance function to determine the reachability distance between database objects.
private  Pattern positiveClassName
          Stores the "positive" class.
private  ScalingFunction scaling
          Scaling function to use
static OptionID SCALING_ID
          Parameter to specify a scaling function to use.
 
Constructor Summary
JudgeOutlierScores(Pattern positive_class_name, ScalingFunction scaling)
          Constructor.
 
Method Summary
protected  JudgeOutlierScores.ScoreResult computeScore(DBIDs ids, DBIDs outlierIds, OutlierResult or)
          Evaluate a single outlier score result.
 void processNewResult(HierarchicalResult baseResult, Result result)
          Process a result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Logging logger
Logger for debug output.


POSITIVE_CLASS_NAME_ID

public static final OptionID POSITIVE_CLASS_NAME_ID
The distance function to determine the reachability distance between database objects.

Default value: EuclideanDistanceFunction

Key: -comphist.positive


SCALING_ID

public static final OptionID SCALING_ID
Parameter to specify a scaling function to use.

Key: -comphist.scaling


positiveClassName

private Pattern positiveClassName
Stores the "positive" class.


scaling

private ScalingFunction scaling
Scaling function to use

Constructor Detail

JudgeOutlierScores

public JudgeOutlierScores(Pattern positive_class_name,
                          ScalingFunction scaling)
Constructor.

Parameters:
positive_class_name - Positive class name
scaling - Scaling function
Method Detail

computeScore

protected JudgeOutlierScores.ScoreResult computeScore(DBIDs ids,
                                                      DBIDs outlierIds,
                                                      OutlierResult or)
                                               throws IllegalStateException
Evaluate a single outlier score result.

Parameters:
ids - Inlier IDs
outlierIds - Outlier IDs
or - Outlier Result to evaluate
Returns:
Outlier score result
Throws:
IllegalStateException

processNewResult

public void processNewResult(HierarchicalResult baseResult,
                             Result result)
Description copied from interface: ResultProcessor
Process a result.

Specified by:
processNewResult in interface ResultProcessor
Parameters:
baseResult - The base of the result tree.
result - Newly added result subtree.

Release 0.4.0 (2011-09-20_1324)