metric-learn is an open source Python package implementing supervised and weakly-supervised distance metric learning algorithms. As part of scikit-learn-contrib, it provides a unified interface compatible with scikit-learn which allows to easily perform cross-validation, model selection, and pipelining with other machine learning estimators. metric-learn is thoroughly tested and available on PyPi under the MIT licence.
@article{arxiv.1908.04710,
title = {metric-learn: Metric Learning Algorithms in Python},
author = {William de Vazelhes and CJ Carey and Yuan Tang and Nathalie Vauquier and Aurélien Bellet},
journal= {arXiv preprint arXiv:1908.04710},
year = {2020}
}