

.. _example_neighbors_plot_classification.py:


================================
Nearest Neighbors Classification
================================

Sample usage of Nearest Neighbors classification.
It will plot the decision boundaries for each class.



.. rst-class:: horizontal





**Python source code:** :download:`plot_classification.py <plot_classification.py>`

.. literalinclude:: plot_classification.py
    :lines: 9-

**Total running time of the example:**    0 seconds
    