

.. _example_svm_plot_weighted_samples.py:


=====================
SVM: Weighted samples
=====================

Plot decision function of a weighted dataset, where the size of points
is proportional to its weight.



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




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

.. literalinclude:: plot_weighted_samples.py
    :lines: 9-
    