#422422nd of 433 in ML frameworks and libraries
metric-learn
scikit-learn-compatible Python library of metric learning algorithms
Watch puts metric-learn on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.metric-learn is on your watch list. Its new releases and problems show there.
- Stars
- 1.4k
- License
- MIT
- Last commit
- Mar 2026
- Last release
- Sep 2023
- Language
- Python
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| Rank | Project | Score |
|---|---|---|
| #420 | stardistNucleus and cell instance segmentation in 2D and 3D microscopy images | 14 out of 100 |
| #421 | jeelizfacefilterWebGL face detection and head-pose tracking from webcam video, for AR filters | 13 out of 100 |
| #423 | spargeattnTraining-free sparse attention CUDA kernels, a drop-in for PyTorch SDPA | 13 out of 100 |
| #424 | pyldavisInteractive visualization of fitted LDA topic models in Python notebooks | 12 out of 100 |
| #425 | pfrlPyTorch library of deep RL algorithms such as DQN, PPO, SAC and TD3 | 11 out of 100 |