PROFESSIONAL-DATA-ENGINEER · Question #134
You are training a spam classifier. You notice that you are overfitting the training data. Which three actions can you take to resolve this problem? (Choose three.)
The correct answer is A. Get more training examples C. Use a smaller set of features E. Increase the regularization parameters. Overfitting is resolved by reducing model complexity, increasing training data diversity, or adding regularization constraints.
Question
Options
- AGet more training examples
- BReduce the number of training examples
- CUse a smaller set of features
- DUse a larger set of features
- EIncrease the regularization parameters
- FDecrease the regularization parameters
How the community answered
(22 responses)- A73% (16)
- B14% (3)
- D5% (1)
- F9% (2)
Why each option
Overfitting is resolved by reducing model complexity, increasing training data diversity, or adding regularization constraints.
More training examples expose the model to a wider variety of patterns, reducing its ability to memorize specific training instances and improving generalization to unseen data.
Reducing training examples worsens overfitting by giving the model fewer diverse examples, making it easier to memorize the smaller dataset rather than learn generalizable patterns.
Reducing the feature set lowers model complexity and eliminates noisy or irrelevant signals that the model might overfit to, forcing it to rely on the most predictive features.
Adding more features increases model dimensionality and complexity, providing additional dimensions along which the model can overfit the training data.
Increasing regularization parameters (such as L1 or L2 lambda) penalizes large coefficient values, constraining model complexity and preventing the model from fitting noise in the training data.
Decreasing regularization parameters weakens the complexity penalty, allowing the model to assign larger weights to individual features and fit the training data more aggressively.
Concept tested: Resolving overfitting with regularization and data strategies
Source: https://developers.google.com/machine-learning/crash-course/regularization-for-simplicity/l2-regularization
Topics
Community Discussion
No community discussion yet for this question.