Overfitting in practice
Lesson 16 of 18 · DS.Micro
A model that memorizes the training data looks great and fails on new data. That is overfitting.
To watch it happen, evaluate a deep tree on its own training data and then with cross-validation. The gap between the two numbers is how much the model memorized.
In Orange's Test and Score, the "Test on train data" option exists precisely for comparison. Never use that number to choose a model.
In Test and Score, choose "Test on training data" with the depth-8 tree. Note the CA.
Switch back to 5-fold cross-validation and watch the CA drop.
Reduce the depth until the tree, under cross-validation, beats the depth-8 one.
The deep tree had high CA on training and low CA under cross-validation. That indicates…
Drag from the right dot to another widget to connect. Tap a widget to see its output.
Do it in the browser: a real data science tool, a short mission and instant feedback. No install.
Start this lesson — free