sepandhaghighi/pycm
Multi-class confusion matrix library in Python observed · 2026-08-28
Health v2 · maintenance only
86/100
- Activity 98
- Release rhythm 62
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 88
- age_days: 3145
- days_rel: 177
- days_push: 17
- n_releases_24m: 6
Adoption not part of the score
1506 stars · 126 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
PyCM is a Python library for computing multi-class confusion matrices and a wide range of per-class and overall evaluation statistics. It accepts both actual/predicted vectors and direct matrices, making it a comprehensive post-classification model evaluation tool for data scientists.
Use cases
- evaluate a multi-class classifier with confusion matrix metrics
- compute accuracy, precision, recall, and F1 scores in Python
- compare performance of several classification models
- generate a confusion matrix from predicted and actual label vectors
- get per-class and overall statistics for a predictive model
- analyze classification results for a research paper
When to choose
- you need a broad array of confusion matrix statistics beyond what scikit-learn exposes
- you work with multi-class classification and want per-class and overall metrics in one tool
- you want to build a confusion matrix directly from a matrix or from label vectors
When to avoid
- you only need simple binary accuracy and already use scikit-learn
- you need model training or hyperparameter tuning rather than evaluation
- you work outside the Python ecosystem
Facets
library · maturity stable
machine-learning data-science analytics math machine-learning data-science artificial-intelligence analytics python cross-platform confusion-matrix classification-metrics model-evaluation statistics
3 sources
- readme: https://github.com/sepandhaghighi/pycm · fetched 2026-08-28 · 6e6cdf511803
- homepage: http://pycm.io · fetched 2026-08-29 · 69003e7a9edd
- registry_pypi: https://pypi.org/pypi/pycm/json · fetched 2026-08-29 · 60bde4fd2616
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sepandhaghighi/pycm | main | 86 |
For agents
markdown · JSON · MCP: product_card(name="sepandhaghighi/pycm")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem