What is the common way to do metric learning using python? I'm already familiar with the metric-learn package, is there any other packages? It does not contain all of the algorithms I saw here. Perhaps I should use another language?


closed as off-topic by user20160, Michael Chernick, mdewey, Peter Flom May 26 '18 at 12:16

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question appears to be off-topic because EITHER it is not about statistics, machine learning, data analysis, data mining, or data visualization, OR it focuses on programming, debugging, or performing routine operations within a statistical computing platform. If the latter, you could try the support links we maintain." – user20160, Michael Chernick, mdewey, Peter Flom
If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ Anyone? Is my question not good? $\endgroup$ – proton Jan 30 '17 at 20:11

metric-learn is the most comprehensive package so far for Python. If it does not have the algorithm you need, you will need to search for a specific package with a Python implementation. Typically on Google/PyPi/Github.

If nothing is found, you may have to implement it yourself. If a C/C++ implementation is available you can make that accessible to Python using pybind11 or similar.


Not the answer you're looking for? Browse other questions tagged or ask your own question.