Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Metric Learning Python Packages

Python packages with the GitHub topic metric-learning. Sorted by monthly downloads, with stars and forks.
KevinMusgrave
pytorch-metric-learning

Train and evaluate embeddings for similarity search with PyTorch. Includes contrastive losses, hard example mining, samplers, and retrieval metrics.

1.9M 6K 664
catalyst-team
catalyst

Accelerated deep learning R&D

8K 3K 396
scikit-learn-contrib
metric-learn

Metric learning algorithms in Python

6K 1K 234
jina-ai
finetuner

:dart: Task-oriented embedding tuning for BERT, CLIP, etc.

3K 1K 65
tensorflow
tfsim-nightly

Metric Learning for Humans

3K 1K 105
patrickfrank1
chesspos

A library for manipulating, learning and searching chess positions

2K 18 6
tensorflow
tensorflow-similarity

TensorFlow Similarity is a python package focused on making similarity learning quick and easy.

1K 1K 105
nmichlo
disent

🧶 Modular VAE disentanglement framework for python built with PyTorch Lightning ▸ Including metrics and datasets ▸ With strongly supervised, weakly supervised and unsupervised methods ▸ Easily configured and run with Hydra config ▸ Inspired by disentanglement_lib

1K 135 19
OML-Team
open-metric-learning

Metric learning and retrieval pipelines, models and zoo.

1K 998 78
DaminK
ggml-ot

Improve Optimal Transport applications by Global Ground Metric Learning (published at AISTATS2025). This package supports single-cell data in Anndata format and generic array-like data.

917 7 0
johny-c
pylmnn

Large Margin Nearest Neighbors implementation in python

795 49 13
KevinMusgrave
powerful-benchmarker

A library for ML benchmarking. It's powerful.

715 443 41
romue404
metric-learning-layers

A simple PyTorch package that includes the most common metric learning layers

637 1 0
qdrant
quaterion

Similarity Learning fine-tuning framework

590 665 47
MPI-Dortmund
tomotwin-cryoet

Picking procedure for cryo em tomography

490 47 13
zbr17
gedml

GeDML is an easy-to-use generalized deep metric learning library, which contains state-of-the-art deep metric learning algorithms and auxiliary modules to build end-to-end compute vision systems

321 36 3
bm2-lab
scmdml

scmdml

306 4 4
raamana
kernelmethods

Kernel methods and classes for composable kernel learning workflows.

304 45 10
bm2-lab
mdml

A multitask deep metric learning-based framework for single cell assignment based on multiple references

255 4 4
Ximilar-com
tf-metric-learning

Image similarity, metric learning loss functions for TensorFlow 2+.

176 38 4
jina-ai
finetuner-client

Finetuner allows one to tune the weights of any deep neural network for better embeddings on search tasks.

126 1K 65
catalyst-team
catalyst-pdm

Catalyst fork compatible with PDM

125 3K 396
hand10ryo
pytorchcml

Collaborative Metric Learning implemented by PyTorch

123 20 3
gjhuizing
wsingular

Wasserstein Singular Vectors

115 10 1
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology