aggmetrics: Aggregating Classification Performance Measures for Machine Learning
Ronaldo Cristiano Prati
Key points
From the paper's conclusion- The package is BSD-3 licensed, depends only on NumPy, and is available at https://github.com/rcprati/aggmetrics; documentation at https://aggmetrics.readthedocs.io.
Abstract
aggmetrics is a Python package that extends any binary performance measure expressed in the four confusion-matrix counts to multiclass, multilabel, ordinal, cost-sensitive, soft-label and cross-validation settings, by substituting one of four aggregation operators for what libraries usually expose as an average switch. The package also stores, for every measure, the structural properties that decide which identities apply to it, can infer those properties from a user-supplied formula, and uses them to warn when a measure is used where it does not behave as commonly assumed. Its test suite encodes the results of the companion theory as executable tests. The package is BSD-3 licensed, depends only on NumPy, and is available at https://github.com/rcprati/aggmetrics; documentation at https://aggmetrics.readthedocs.io.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Multi-Label Agreement: A Flexible Framework for Inter-Annotator ReliabilityarXiv · 2026
- Performance metrics in machine learning: a scenario-based guide from the confusion matrix to calibration, regression and uncertaintyarXiv · 2026
- Discrimination, Calibration, and Ranking: A Unified Matrix FrameworkarXiv · 2026
- The Matthews Correlation Coefficient: Fifty yearsarXiv · 2026
- Metrics for Artificial Intelligence in Medicine: A Reference ResourceRadiology Artificial Intelligence · 2026
- Evaluation metrics under class imbalance in machine learning: A methodological analysisMachine Learning: Science and Technology · 2026