#401401st of 433 in ML frameworks and libraries

pycm

Python library for multi-class confusion matrices and classifier metrics

Stars
1.5k
License
MIT
Last commit
Mar 2026
Last release
Mar 2026
Language
Python
Stars, last 30 weeks+11
2 May 2026: 1,496 stars9 May 2026: 1,496 stars16 May 2026: 1,497 stars23 May 2026: 1,498 stars30 May 2026: 1,498 stars6 Jun 2026: 1,498 stars13 Jun 2026: 1,499 stars20 Jun 2026: 1,499 stars27 Jun 2026: 1,499 stars4 Jul 2026: 1,499 stars11 Jul 2026: 1,501 stars18 Jul 2026: 1,502 stars25 Jul 2026: 1,503 stars1 Aug 2026: 1,503 stars8 Aug 2026: 1,503 stars15 Aug 2026: 1,503 stars22 Aug 2026: 1,503 stars29 Aug 2026: 1,503 stars5 Sept 2026: 1,503 stars12 Sept 2026: 1,503 stars19 Sept 2026: 1,504 stars26 Sept 2026: 1,505 stars3 Oct 2026: 1,505 stars10 Oct 2026: 1,505 stars17 Oct 2026: 1,506 stars24 Oct 2026: 1,506 stars31 Oct 2026: 1,506 stars7 Nov 2026: 1,506 stars14 Nov 2026: 1,507 stars21 Nov 2026: 1,507 stars28 Nov 2026: 1,507 stars

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
Also in ML frameworks and libraries
RankProjectScore
#399videopipeC++ pipeline framework for video analysis with pluggable inference nodes3k starsApache-2.020 out of 100
#400keras-attentionKeras attention layer with Luong and Bahdanau score functions2.8k starsApache-2.020 out of 100
#402internnavToolbox for training and evaluating embodied navigation models in Habitat and Isaac Sim Live demo ↗ (opens in a new tab)1.2k starsMIT20 out of 100
#403deimTraining framework for real-time DETR object detectors with faster convergence1.7k starscustom license19 out of 100
#404tensorflow/agentsTensorFlow library of reinforcement learning and contextual bandit algorithms3k starsApache-2.018 out of 100