moa
moa copied to clipboard
Add PredictionLoggerEvaluator
LearningPerformanceEvaluatoris nowAutoCloseableto ensurePredictionLoggerEvaluatorcan flush predictions.PredictionLoggerEvaluatorcan wrap anotherClassificationPerformanceEvaluator.- Removed
outputPredictionFilefrom classification tasks because it is redundant now. - Ensures all tasks close the evaluators.
- Saves a gzip compressed CSV by default.
PredictionLoggerEvaluatoronly supports classification.
Output with probabilities:
true_class,class_prediction,class_probability_0,class_probability_1,
1,0,0.00,0.00,
1,0,0.00,0.00,
0,1,0.00,1.00,
0,1,0.33,0.67,
1,0,0.50,0.50,
0,0,1.00,0.00,
Output without probabilities:
true_class,class_prediction,
1,0,
1,0,
0,1,
0,1,
1,0,
0,0,
1,1,
Some tests fail but I believe these fail on master: