MLA-C01 · Question #196
An ML engineer has trained an ML model by using Amazon SageMaker AI. The ML engineer determines that the model is overfitting and that the training data contains unnecessary features. The ML…
The correct answer is B. Apply L1 regularization to the training data. Retrain the model. The problem has two components: overfitting and unnecessary (irrelevant) features. L1 regularization (Lasso) adds a penalty proportional to the absolute value of model coefficients to the loss function. This has the dual effect of (1) reducing model complexity to combat…
Question
An ML engineer has trained an ML model by using Amazon SageMaker AI. The ML engineer determines that the model is overfitting and that the training data contains unnecessary features. The ML engineer must reduce the overfitting and the impact of the unnecessary features. Which solution will meet these requirements?
Options
- AIncrease the number of training iterations. Retrain the model.
- BApply L1 regularization to the training data. Retrain the model.
- CDecrease the number of training iterations. Retrain the model.
- DUse SageMaker Debugger to apply L1 regularization to the running model.
How the community answered
(30 responses)- A13% (4)
- B77% (23)
- C3% (1)
- D7% (2)
Explanation
The problem has two components: overfitting and unnecessary (irrelevant) features. L1 regularization (Lasso) adds a penalty proportional to the absolute value of model coefficients to the loss function. This has the dual effect of (1) reducing model complexity to combat overfitting, and (2) driving the coefficients of irrelevant features to exactly zero, effectively performing automatic feature selection. L2 (Ridge) regularization shrinks coefficients but rarely eliminates them entirely, so it wouldn't remove unnecessary features. Increasing training iterations (A) would worsen overfitting. Decreasing iterations (C) is a crude fix that doesn't address feature relevance. SageMaker Debugger (D) is a monitoring and debugging tool, not a mechanism to apply regularization to a running model.
Topics
Community Discussion
No community discussion yet for this question.