Aan de slagGa gratis aan de slag

Visualizing the tradeoff

We know that the bias-variance tradeoff serves as the basis for dealing with issues like overfitting and underfitting in machine learning.

In this final exercise, you'll revisit our weather dataset one last time by visualizing the difference between high bias and high variance models using the already imported preds and preds2 variables.

As a reminder, we are using the Temp9am feature to predict our dependent variable, the Temp3pm feature. The usual packages have been imported.

Deze oefening maakt deel uit van de cursus

Practicing Statistics Interview Questions in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Use X and y to create a scatterplot
plt.scatter(____, ____)
plt.show()
Code bewerken en uitvoeren