Class AbsolutePredictionErrorComparator

  • All Implemented Interfaces:
    Comparator<weka.classifiers.evaluation.Prediction>

    public class AbsolutePredictionErrorComparator
    extends Object
    implements Comparator<weka.classifiers.evaluation.Prediction>
    Comparator for predictions using the (absolute) prediction error (sorting increasingly).
    • Constructor Detail

      • AbsolutePredictionErrorComparator

        public AbsolutePredictionErrorComparator()
    • Method Detail

      • compare

        public int compare​(weka.classifiers.evaluation.Prediction o1,
                           weka.classifiers.evaluation.Prediction o2)
        Compares the error of the predictions.
        Specified by:
        compare in interface Comparator<weka.classifiers.evaluation.Prediction>
        Parameters:
        o1 - the first prediction
        o2 - the second prediction
        Returns:
        the result of the comparison