Python implementations of metric learning algorithms
Project description
metric-learn
Metric Learning algorithms in Python.
Algorithms
Large Margin Nearest Neighbor (LMNN)
Information Theoretic Metric Learning (ITML)
Sparse Determinant Metric Learning (SDML)
Least Squares Metric Learning (LSML)
Neighborhood Components Analysis (NCA)
Local Fisher Discriminant Analysis (LFDA)
Relative Components Analysis (RCA)
Metric Learning for Kernel Regression (MLKR)
Mahalanobis Metric for Clustering (MMC)
Dependencies
Python 2.7+, 3.4+
numpy, scipy, scikit-learn>=0.20.3
Optional dependencies
For SDML, using skggm will allow the algorithm to solve problematic cases (install from commit a0ed406).
For running the examples only: matplotlib
Installation/Setup
Run pip install metric-learn to download and install from PyPI.
Run python setup.py install for default installation.
Run pytest test to run all tests (you will need to have the pytest package installed).
Usage
See the sphinx documentation for full documentation about installation, API, usage, and examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file metric-learn-0.5.0.tar.gz
.
File metadata
- Download URL: metric-learn-0.5.0.tar.gz
- Upload date:
- Size: 71.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd43bf76aa2f14dfaa40cdbacb3b2fbab25481dafa85491c5cf49ecabf94dab9 |
|
MD5 | 4eb3dd8f8c492cf37d06afdf8bf12168 |
|
BLAKE2b-256 | 71abe3a54279f3610b83908a7171e14a58ea5e08db7384f3c019fd6b28b1df21 |
File details
Details for the file metric_learn-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: metric_learn-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 60.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad1763ab85c60df48a3d99ac4fa090f63b05f91f4816cf1f20e35541fd446737 |
|
MD5 | 5babc39da35cb921abf28daf93a511c7 |
|
BLAKE2b-256 | 3090b2f12dc3363dc4d90081df084aad71e9d5f1d933cc9215809def8bf98159 |