#401401st of 433 in ML frameworks and libraries
pycm
Python library for multi-class confusion matrices and classifier metrics
Watch puts pycm on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.pycm is on your watch list. Its new releases and problems show there.
- Stars
- 1.5k
- License
- MIT
- Last commit
- Mar 2026
- Last release
- Mar 2026
- Language
- Python
1,496 on 2 May 20261,507 on 28 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
PyCM builds a confusion matrix from actual and predicted vectors or from a matrix directly, then computes per-class and overall statistics such as ACC, F1, PPV, TPR, AUC and Kappa. It also provides ROC, precision-recall, precision, recall and F1 curves using one-vs-rest binarization for multi-class output. It is a classifier-evaluation library, not an LLM tool.
Who it is for: Data scientists evaluating classifiers with detailed metrics
Strengths
- Computes many per-class and overall metrics from one ConfusionMatrix object
- Accepts prediction vectors or a ready-made matrix, with sample weights and thresholds
- combine() merges matrices, useful for mini-batch evaluation
- Installs from PyPI, Conda or source; MATLAB usage is documented
Weaknesses
- Evaluation only; no training, inference or LLM-specific metrics
- Plotting needs Matplotlib (>= 3.0.0) or Seaborn (>= 0.9.1) installed separately
- Pure Python; performance on very large datasets is not documented
- Older Python versions need pinned releases (4.3 is last for 3.6)
What it needs
- no GPU
- Docker
- Needs Matplotlib (optional, plotting), Seaborn (optional, plotting)
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #399 | videopipeC++ pipeline framework for video analysis with pluggable inference nodes | 20 out of 100 |
| #400 | keras-attentionKeras attention layer with Luong and Bahdanau score functions | 20 out of 100 |
| #402 | internnavToolbox for training and evaluating embodied navigation models in Habitat and Isaac Sim | 20 out of 100 |
| #403 | deimTraining framework for real-time DETR object detectors with faster convergence | 19 out of 100 |
| #404 | tensorflow/agentsTensorFlow library of reinforcement learning and contextual bandit algorithms | 18 out of 100 |