.. _example_linear_model_plot_sgd_weighted_samples.py:


=====================
SGD: Weighted samples
=====================

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



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




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

.. literalinclude:: plot_sgd_weighted_samples.py
    :lines: 9-

**Total running time of the example:**  0.24 seconds
( 0 minutes  0.24 seconds)