Class 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
    • Field Detail

      • LOG

        private static final Logging LOG
        Logger for debug output.
      • positiveClassName

        private java.util.regex.Pattern positiveClassName
        Stores the "positive" class.
    • Constructor Detail

      • JudgeOutlierScores

        public JudgeOutlierScores​(java.util.regex.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)
        Evaluate a single outlier score result.
        Parameters:
        ids - Inlier IDs
        outlierIds - Outlier IDs
        or - 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 interface ResultProcessor
        Parameters:
        result - Newly added result subtree.