Skip to main content

Scikit-Learn compatible Generalized Learning Vector Quantization (GLVQ) and Robust Soft Learning Vector Quantization implementation.

Project description

Build Status Build status CircleCI Coverage Status Coverage Status


Repository and Package Name changed to sklearn-lvq!

Generalized Learning Vector Quantization

Scikit-learn compatible implementation of GLVQ, GRLVQ, GMLVQ, LGMLVQ RSLVQ, MRSLVQ and LMRSLVQ.

Compatible with Python2.7, Python3.6 and above.

This implementation is based on the Matlab implementation provided by Biehl, Schneider and Bunte (

Important Links


To install this module run:

pip install .


pip install sklearn-lvq

To also install the extras, use

pip install .[docs,examples,tests]


pip install -U sklearn-lvq[docs,examples,tests]


To run the examples:

pip install -U sklearn-lvq[examples]

The examples can be found in the examples directory.


To run testss:

pip install -U sklearn-lvq[tests]

Tests are located in the sklearn_lvq/tests folder and can be run with the nosetests command in the main directory.


To build the documentation locally, ensure that you have sphinx, sphinx-gallery, pillow, sphinx_rt_theme, metric_learn and matplotlib by executing:

pip install -U sklearn-lvq[docs]

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sklearn-lvq-1.1.1.tar.gz (20.5 kB view hashes)

Uploaded source

Built Distribution

sklearn_lvq-1.1.1-py3-none-any.whl (38.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page