.. _example_linear_model_plot_sgd_ols.py: =============================== Ordinary Least Squares with SGD =============================== Simple Ordinary Least Squares example with stochastic gradient descent, we draw the linear least squares solution for a random set of points in the plane. .. image:: images/plot_sgd_ols_1.png :align: center **Python source code:** :download:`plot_sgd_ols.py ` .. literalinclude:: plot_sgd_ols.py :lines: 10-