#119 · Primary category: MLOps & Evaluation

pycm

accuracy ai artificial-intelligence classification confusion-matrix data data-analysis data-mining data-science deep-learning deeplearning evaluation machine-learning mathematics matrix ml multiclass-classification neural-network statistical-analysis statistics

Multi-class confusion matrix library in Python

Project last updated:08/17/26

GitHub Stars

1.5K

Forks

126

Contributors

19

License

MIT

Why we included this project

Accuracy alone rarely tells you where a classifier goes wrong, and PyCM targets that gap directly. It is a multi-class confusion matrix library that accepts either predicted-versus-actual vectors or a pre-built confusion table, then returns per-class and overall metrics such as precision, recall, F1, macro-aggregated scores, kappa, and AUC-based interpretation, plus normalized tables and plots when Matplotlib or Seaborn are available. That makes it a solid choice for research pipelines, Kaggle-style experiments, and teams that want reproducible model evaluation without hand-writing their own metric code. Because it also takes a directly supplied matrix, it works when you only have an existing table from another system, so it stays useful as a general utility rather than something tied to one framework.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category