Class AbsolutePredictionErrorComparator
- java.lang.Object
-
- adams.flow.transformer.wekaevaluationpostprocessor.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 Summary
Constructors Constructor Description AbsolutePredictionErrorComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(weka.classifiers.evaluation.Prediction o1, weka.classifiers.evaluation.Prediction o2)
Compares the error of the predictions.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
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 interfaceComparator<weka.classifiers.evaluation.Prediction>
- Parameters:
o1
- the first predictiono2
- the second prediction- Returns:
- the result of the comparison
-
-