Your very first models#

This notebook contains three interactive exercises for understanding kNN models, underfitting and overfitting.

Training a first model#

Play with the interactive model below and try to build the best possible model given our N data points. Remember we are trying to minimize the error when making predictions!

Training a model while knowing the ground truth#

We repeat the exercise from before but now including the exact function we are trying to approximate (ground truth). Try it out below. Did your choice of k change?

Training a good model under limited knowledge#

Of course, in practice the ground truth is unknown! We only have our data to work with, and nothing else. Below we are using 80% of our dataset for training and 20% for validation. Try to build a model with as low validation error as possible. Then compare with the two models you trained above.