Here are the code examples for Chapter 6. Example 6.2 underitting and overfitting Example 6.3 - see Example 6.2