feat(evaluation): add ROC AUC metric - #411
Merged
tachyonicClock merged 2 commits intoSep 7, 2026
Merged
Conversation
MOA's BasicClassificationPerformanceEvaluator now supports a prequential ROC AUC (Waikato/moa#332). Enable it by default and expose it as `roc_auc()` on ClassificationEvaluator and ClassificationWindowedEvaluator, so it's accessible through PrequentialResults like other metrics. Closes adaptive-machine-learning/backlog#23 Assisted-by: claude-code:claude-sonnet-5
Assisted-by: claude-code:claude-sonnet-5
tachyonicClock
merged commit Sep 7, 2026
3efc9a6
into
adaptive-machine-learning:main
5 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BasicClassificationPerformanceEvaluator(F1 fix + log loss + evaluate prequential delayed regression Waikato/moa#332).rocAUCoption by default inClassificationEvaluator, and expose it asroc_auc()on bothClassificationEvaluatorandClassificationWindowedEvaluator, so it's accessible fromPrequentialResultsthe same way asaccuracy,kappa,f1_score, etc.roc_auc->"ROC AUC (cumulative)"name mapping used to translate between CapyMOA and MOA metric names.Note: MOA computes ROC AUC prequentially for binary classification only, reporting
NaNfor multi-class problems (see adaptive-machine-learning/backlog#23, which had been blocked on an alternative approach — we ended up simply adding ROC AUC to the evaluator instead).Test plan
pytest tests/test_evaluation.pypasses (47 passed), includingtest_evaluation_apiwhich generically checks every metric returned bymetrics_header()is accessible throughPrequentialResults.results.cumulative.roc_auc(),results.roc_auc()(delegated), andresults.windowed.roc_auc()all return sensible values onElectricityTinywithHoeffdingTree.Assisted-by: claude-code:claude-sonnet-5