Home/Model Training/metric-learn
metric-learn logo

metric-learn

scikit-learn-contrib/metric-learn

Metric learning algorithms in Python

GraphCanon updated Sep 26, 2026 · GitHub synced Sep 26, 2026

1.4k stars232 forksLast push Mar 19, 2026 Python MIT

Decision brief

Unverified catalog guidance: Metric-learn is a Python library for metric learning that offers a range of algorithms compatible with scikit-learn's API and supports various methods like LMNN, ITML, LFDA among others.

Good fit when

  • Unverified catalog guidance: When you need to use specific metric learning techniques such as Large Margin Nearest Neighbor (LMNN) or Neighborhood Components Analysis (NCA), which are implemented efficiently in Python.
  • Unverified catalog guidance: When your project is compatible with the scikit-learn framework and you want to integrate new methods without changing existing pipelines.

Avoid when

  • Unverified catalog guidance: If your development environment does not already use Python, as metric-learn is specific to this language and its ecosystem.
  • Unverified catalog guidance: For applications that require real-time performance critical operations, since the library may rely on computationally intensive algorithms that could affect latency in real-time systems.
Requirements:
The application requires Python version 3.6 or higher and specific dependencies such as numpy, scipy, and scikit-learn.

Observed Jul 17, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Slowing (190d since push)
As of Sep 26, 2026
Provenance
Not a fork · Organization account
As of Sep 26, 2026
Security (OSV)
No lockfile
As of Jul 11, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

Package installation is not established from the available documentation. Check the source repository for setup instructions.

git clone https://github.com/scikit-learn-contrib/metric-learn
Source repository

Relationship proposals(1)

Relationship types and rationales are stored proposals, not independently verified integrations, migration guidance or endorsements.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Relationship types and rationales are stored proposals, not independently verified integrations, migration guidance or endorsements.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

metric-learn contains efficient Python implementations of several metric learning algorithms compatible with scikit-learn's API.

Capability facts

Languages
python

Source: github.language · Sep 26, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Sep 26, 2026)

metric-learn: Metric Learning in Python
Source link

Tags

README

GitHub Actions Build Status License PyPI version Code coverage metric learn: Metric Learning in Python ======================================= metric learn contains efficient Python implementations of several popular supervised and weakly supervised metric learning algorithms. As...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.