Learning curves help us understand how the size of our training dataset influences the machine learning model. This is very useful when you have to deal with computational constraints. Let's go ahead and plot learning curves by varying the size of our training dataset.
Extracting learning curves
Getting ready
A learning curve shows the validation and training score of an estimator for varying numbers of training samples.
How to do it...
Let's see how to extract learning curves:
- Add the following code to the same Python file as in the previous recipe, Extracting...