跳到正文
arXiv (AI + Vision + Imaging)· Ronaldo Cristiano Prati·AI 评分8

aggmetrics:将机器学习分类性能指标聚合到多类、多标签与交叉验证场景的Python包

aggmetrics: Aggregating Classification Performance Measures for Machine Learning

AI 导读

aggmetrics是一个Python包,可将基于混淆矩阵四项计数的二分类性能指标扩展到多类、多标签、序数、代价敏感、软标签和交叉验证场景,用四种聚合算子替代常见库中的average开关。该包为每个指标存储决定适用恒等式的结构性质,并能从用户公式推断这些性质,在指标被误用时发出警告。其测试套件将配套理论结果编码为可执行测试,采用BSD-3许可,仅依赖NumPy。

正文 · 原文

arXiv:2610.30456v1 Announce Type: new 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org