:orphan:
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
===========
Basic Usage
===========
Examples of how to fit, predict, and transform (when applicable) the data with each of the LVQ
algorithms.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/01_basic_usage/images/thumb/sphx_glr_plot_01_glvq_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_01_basic_usage_plot_01_glvq.py`
.. raw:: html
Generalized LVQ (GLVQ)
.. raw:: html
.. only:: html
.. image:: /auto_examples/01_basic_usage/images/thumb/sphx_glr_plot_02_gmlvq_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_01_basic_usage_plot_02_gmlvq.py`
.. raw:: html
Generalized Matrix LVQ (GMLVQ)
.. raw:: html
.. only:: html
.. image:: /auto_examples/01_basic_usage/images/thumb/sphx_glr_plot_03_lgmlvq_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_01_basic_usage_plot_03_lgmlvq.py`
.. raw:: html
Local Generalized Matrix LVQ (LGMLVQ)
.. raw:: html
.. only:: html
.. image:: /auto_examples/01_basic_usage/images/thumb/sphx_glr_plot_04_NaNLVQ_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_01_basic_usage_plot_04_NaNLVQ.py`
.. raw:: html
Not a Number LVQ (NaNLVQ)
.. thumbnail-parent-div-close
.. raw:: html
==============
Pre-processing
==============
Any pre-processing, can be achieved by using the by sklearn's `pipelines`_.
Therefore, this section will not discuss the topic in detail but provide a basic example of how one
would do this using a model from the sklvq package.
.. _pipelines: https://scikit-learn.org/stable/modules/compose.html
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/02_pre_processing/images/thumb/sphx_glr_plot_01_pipeline_lvq_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_02_pre_processing_plot_01_pipeline_lvq.py`
.. raw:: html
Pipelines
.. thumbnail-parent-div-close
.. raw:: html
===============
Model Selection
===============
This section contains how one could use sklearn's `crossvalidation`_ and `gridsearch`_ methods in
combination with the models provided in the sklvq package.
.. _crossvalidation: https://scikit-learn.org/stable/modules/cross_validation.html
.. _gridsearch: https://scikit-learn.org/stable/modules/grid_search.html
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/03_model_selection/images/thumb/sphx_glr_plot_01_crossvalidation_lvq_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_03_model_selection_plot_01_crossvalidation_lvq.py`
.. raw:: html
Cross validation
.. raw:: html
.. only:: html
.. image:: /auto_examples/03_model_selection/images/thumb/sphx_glr_plot_02_gridsearch_lvq_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_03_model_selection_plot_02_gridsearch_lvq.py`
.. raw:: html
Grid Search
.. thumbnail-parent-div-close
.. raw:: html
===================
Performance Metrics
===================
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/04_performance_metrics/images/thumb/sphx_glr_plot_01_learning_rate_lvq_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_04_performance_metrics_plot_01_learning_rate_lvq.py`
.. raw:: html
Learning Behaviour
.. raw:: html
.. only:: html
.. image:: /auto_examples/04_performance_metrics/images/thumb/sphx_glr_plot_02_roc_curve_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_04_performance_metrics_plot_02_roc_curve.py`
.. raw:: html
Receiver Operating Characteristic Curve
.. thumbnail-parent-div-close
.. raw:: html
=============
Customization
=============
The algorithms accept custom activation, discriminant and distance functions, as well as solvers.
Any customization with proper testing and documentation will be considered to be included in the
sklvq package. Please, create a pull request on github.
Custom models and objectives are also welcome. However, as they greatly impact all currently
implemented parts and even might work completely differently there is no easy way to make this
similarly expandable as what currently is.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/05_customization/images/thumb/sphx_glr_plot_01_activations_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_05_customization_plot_01_activations.py`
.. raw:: html
Activation Functions
.. raw:: html
.. only:: html
.. image:: /auto_examples/05_customization/images/thumb/sphx_glr_plot_02_distances_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_05_customization_plot_02_distances.py`
.. raw:: html
Distance Functions
.. raw:: html
.. only:: html
.. image:: /auto_examples/05_customization/images/thumb/sphx_glr_plot_03_discriminants_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_05_customization_plot_03_discriminants.py`
.. raw:: html
Discriminant Functions
.. raw:: html
.. only:: html
.. image:: /auto_examples/05_customization/images/thumb/sphx_glr_plot_04_solvers_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_05_customization_plot_04_solvers.py`
.. raw:: html
Solvers
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
:includehidden:
/auto_examples/01_basic_usage/index.rst
/auto_examples/02_pre_processing/index.rst
/auto_examples/03_model_selection/index.rst
/auto_examples/04_performance_metrics/index.rst
/auto_examples/05_customization/index.rst
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: auto_examples_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery