Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PredictionLoggerEvaluator #285

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tachyonicClock
Copy link

@tachyonicClock tachyonicClock commented Sep 21, 2023

  • LearningPerformanceEvaluator is now AutoCloseable to ensure PredictionLoggerEvaluator can flush predictions.
  • PredictionLoggerEvaluator can wrap another ClassificationPerformanceEvaluator.
  • Removed outputPredictionFile from classification tasks because it is redundant now.
  • Ensures all tasks close the evaluators.
  • Saves a gzip compressed CSV by default.
  • PredictionLoggerEvaluator only supports classification.

MOA GUI with PredictionLoggerEvaluator's default options

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:
Pasted image 20230921134835

@tachyonicClock tachyonicClock marked this pull request as ready for review September 21, 2023 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant