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

      Fields 
      Modifier and Type Field Description
      private java.lang.String key
      Key prefix for statistics logging.
      private static Logging LOG
      The logger.
      private java.util.regex.Pattern positiveClassName
      Stores the "positive" class.
    • Constructor Summary

      Constructors 
      Constructor Description
      OutlierRankingEvaluation​(java.util.regex.Pattern positive_class_name)
      Constructor.
    • 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.
    • Constructor Detail

      • OutlierRankingEvaluation

        public OutlierRankingEvaluation​(java.util.regex.Pattern positive_class_name)
        Constructor.
        Parameters:
        positive_class_name - Positive class name pattern
    • 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 to
        size - Total size
        pos - Number of positive hits
        adapter - Adapter
      • 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.