0
0
ML Pythonprogramming~5 mins

Overfitting and underfitting in ML Python - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is overfitting in machine learning?
Overfitting happens when a model learns the training data too well, including noise and details that don't apply to new data. It performs great on training data but poorly on new, unseen data.
Click to reveal answer
beginner
What does underfitting mean?
Underfitting occurs when a model is too simple to capture the patterns in the data. It performs poorly on both training and new data because it hasn't learned enough.
Click to reveal answer
intermediate
How can you tell if a model is overfitting by looking at training and validation errors?
If training error is very low but validation error is high, the model is likely overfitting. It means the model memorized training data but can't generalize well.
Click to reveal answer
intermediate
Name two common ways to reduce overfitting.
1. Use simpler models with fewer parameters.
2. Use techniques like regularization, dropout, or more training data.
Click to reveal answer
beginner
Why is it important to balance between overfitting and underfitting?
Balancing helps the model learn enough from data to make good predictions on new data without memorizing noise or missing important patterns.
Click to reveal answer
What happens when a model underfits the data?
AIt performs well on training data but poorly on new data
BIt performs poorly on both training and new data
CIt memorizes the training data perfectly
DIt always predicts the average value
Which of these is a sign of overfitting?
ALow training error and low validation error
BHigh training error and high validation error
CLow training error and high validation error
DHigh training error and low validation error
Which method helps reduce overfitting?
AAdding more layers to the model without limit
BIgnoring validation data
CReducing training data size
DUsing dropout during training
What is the main goal when avoiding underfitting and overfitting?
ATo generalize well to new data
BTo make the model as complex as possible
CTo memorize training data exactly
DTo ignore validation results
If a model has high error on training data, what is likely happening?
AUnderfitting
BData leakage
CPerfect fitting
DOverfitting
Explain in your own words what overfitting and underfitting mean and how they affect model performance.
Describe two techniques you can use to prevent overfitting in a machine learning model.