Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > e578866d55cd81fdb23827cdf3cec911 > files > 551

python-scikits-learn-0.6-1mdv2010.2.i586.rpm



.. _example_plot_neighbors.py:


=================
Nearest Neighbors
=================

Sample usage of Support Vector Machines to classify a sample.
It will plot the decision surface and the support vectors.


.. image:: images/plot_neighbors.png
    :align: center

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

.. literalinclude:: plot_neighbors.py
    :lines: 9-