#422422nd of 433 in ML frameworks and libraries

metric-learn

scikit-learn-compatible Python library of metric learning algorithms

Stars
1.4k
License
MIT
Last commit
Mar 2026
Last release
Sep 2023
Language
Python
Stars, last 29 weeks+7
6 May 2026: 1,422 stars13 May 2026: 1,422 stars20 May 2026: 1,422 stars27 May 2026: 1,422 stars3 Jun 2026: 1,423 stars10 Jun 2026: 1,424 stars17 Jun 2026: 1,425 stars24 Jun 2026: 1,425 stars1 Jul 2026: 1,425 stars8 Jul 2026: 1,426 stars15 Jul 2026: 1,427 stars22 Jul 2026: 1,427 stars29 Jul 2026: 1,428 stars5 Aug 2026: 1,428 stars12 Aug 2026: 1,428 stars19 Aug 2026: 1,428 stars26 Aug 2026: 1,428 stars2 Sept 2026: 1,428 stars9 Sept 2026: 1,429 stars16 Sept 2026: 1,429 stars23 Sept 2026: 1,429 stars30 Sept 2026: 1,429 stars7 Oct 2026: 1,429 stars14 Oct 2026: 1,429 stars21 Oct 2026: 1,429 stars28 Oct 2026: 1,429 stars4 Nov 2026: 1,429 stars11 Nov 2026: 1,429 stars18 Nov 2026: 1,429 stars25 Nov 2026: 1,429 stars

1,422 on 6 May 20261,429 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

metric-learn implements ten supervised and weakly-supervised distance metric learning algorithms in Python, including LMNN, ITML, NCA, LFDA, RCA, MLKR and SCML. Estimators follow the scikit-learn API, so they work in pipelines and model-selection routines. It is a classical ML library, not an LLM tool.

Who it is for: Python ML users needing learned distance metrics in scikit-learn code

Strengths

  • Estimators follow the scikit-learn API, usable in pipelines and cross-validation
  • Covers ten algorithms including LMNN, ITML, NCA, LFDA, RCA and MLKR
  • MIT license; installs via pip or conda-forge
  • Light dependencies: numpy, scipy, scikit-learn

Weaknesses

  • Last release was 2023-09-29, though commits continue
  • SDML's optional skggm dependency must be installed from a pinned git commit
  • README mentions no deep metric learning or GPU support
  • Documented minimums (Python 3.6+, scikit-learn 0.21.3) are old

What it needs

  • no GPU
  • Needs numpy, scipy, scikit-learn, skggm (optional, SDML), matplotlib (optional, examples)
  • Models: LMNN, ITML, SDML, LSML, SCML

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
#420stardistNucleus and cell instance segmentation in 2D and 3D microscopy images1.3k starsBSD-3-Clause14 out of 100
#421jeelizfacefilterWebGL face detection and head-pose tracking from webcam video, for AR filters Live demo ↗ (opens in a new tab)3k starsApache-2.0no commits in a year13 out of 100
#423spargeattnTraining-free sparse attention CUDA kernels, a drop-in for PyTorch SDPA1.3k starsApache-2.013 out of 100
#424pyldavisInteractive visualization of fitted LDA topic models in Python notebooks Live demo ↗ (opens in a new tab)1.8k starsBSD-3-Clause12 out of 100
#425pfrlPyTorch library of deep RL algorithms such as DQN, PPO, SAC and TD31.3k starsMIT11 out of 100