Overfitting
This is part of a series on ML for generalists, you can find the start here.
Our loss dropped, but our test accuracy didn't improve. What's going on?
Our model might be learning the right answers to give for our training images but not how to predict the right answers using general features of any image. This is overfitting.
There are some approaches we can take:
- More training data: we saw this wasn't an issue when we had 800 training samples instead of 200
- Make our model dumber by removing layers or making those layers smaller, so it has less capacity to learn our dataset
- Make our model forget some data between each layer during training, so it's forced to find general patterns
First, let's confirm our suspicion and see if overfitting is the problem.
