Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Is the metric learn api compatible with scikit-learn?


Asked by Mary Herring on Dec 11, 2021 FAQ



As part of scikit-learn-contrib, the API of metric-learn is compatible with scikit-learn, the leading library for machine learning in Python. This allows to use all the scikit-learn routines (for pipelining, model selection, etc) with metric learning algorithms through a unified interface.
Subsequently,
This allows to use all the scikit-learn routines (for pipelining, model selection, etc) with metric learning algorithms through a unified interface. If you use metric-learn in a scientific publication, we would appreciate citations to the following paper:
In respect to this, metric-learn: Metric Learning in Python ¶ metric-learn contains efficient Python implementations of several popular supervised and weakly-supervised metric learning algorithms. As part of scikit-learn-contrib, the API of metric-learn is compatible with scikit-learn, the leading library for machine learning in Python.
Also Know,
Elements of the scikit-learn API are described more definitively in the Glossary of Common Terms and API Elements. The main objects in scikit-learn are (one class can implement multiple interfaces): The base object, implements a fit method to learn from data, either:
Besides,
This is the class and function reference for the scikit-learn -compatible version of the AIF360 API. It is functionally equivalent to the normal API but it uses scikit-learn paradigms (where possible) and pandas.DataFrame for datasets. Not all functionality from AIF360 is supported yet.