My guess is that it does not create a bug, but there is a typo in the function compare in DoublePairComparator in mltk.predictor.evaluation.AUC.
You wrote:
int cmp = Double.compare(o1.v1, o2.v1);
if (cmp == 0) {
cmp = Double.compare(o2.v2, o2.v2);
}
but the second comparison should be Double.compare(o1.v2, o2.v2).
My guess is that it does not create a bug, but there is a typo in the function
compare
inDoublePairComparator
inmltk.predictor.evaluation.AUC
. You wrote:but the second comparison should be
Double.compare(
o1.v2, o2.v2)
.