.. _book_fig_chapter8_fig_cross_val_D: Cross Validation Examples: Part 4 --------------------------------- Figure 8.15 The learning curves for the data given by eq. 8.75, with d = 2 and d = 3. Both models have high variance for a few data points, visible in the spread between training and validation error. As the number of points increases, it is clear that d = 2 is a high-bias model which cannot be improved simply by adding training points. .. image:: ../images/chapter8/fig_cross_val_D_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_cross_val_D.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_cross_val_D.py :lines: 12- .. raw:: html
:download:`[download source: fig_cross_val_D.py] ` .. raw:: html