

.. _example_linear_model_plot_sgd_loss_functions.py:


==========================
SGD: Convex Loss Functions
==========================

Plot the convex loss functions supported by `scikits.learn.linear_model.stochastic_gradient`.


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

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

.. literalinclude:: plot_sgd_loss_functions.py
    :lines: 8-
    