Overfitting: the model memorizes noise in the training data and performs poorly on unseen data. A typical sign is 95% training accuracy but about 70% validation accuracy.
Detect: compare training and validation metrics, plot learning curves, and use cross-validation.
Prevent: more (or augmented) data, regularization (L1/L2, dropout), simpler models, pruning trees, feature selection, early stopping, and ensembling.
Underfitting is the opposite: both training and validation performance are poor, so add capacity or better features.
Loading…