

.. _example_svm_plot_svm.py:


==========================
Linear SVM classifier
==========================

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



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

**Source code:** :download:`plot_svm.py <plot_svm.py>`

.. literalinclude:: plot_svm.py
    :lines: 10-
    