nerdexam
Amazon

MLS-C01 · Question #157

A machine learning model performed well during experiments, but immediately failed to generalize when placed in a production environment. What should a Machine Learning Specialist do to address this…

The correct answer is C. Add regularization. When a machine learning model performs well in experiments but fails to generalize in production, it indicates overfitting, and adding regularization is the most effective way to address this. Regularization techniques reduce model complexity, encouraging the model to learn…

Modeling

Question

A machine learning model performed well during experiments, but immediately failed to generalize when placed in a production environment. What should a Machine Learning Specialist do to address this issue?

Options

  • AApply dimensionality reduction
  • BAdd additional features
  • CAdd regularization
  • DModify the learning rate

How the community answered

(43 responses)
  • A
    7% (3)
  • B
    12% (5)
  • C
    79% (34)
  • D
    2% (1)

Why each option

When a machine learning model performs well in experiments but fails to generalize in production, it indicates overfitting, and adding regularization is the most effective way to address this. Regularization techniques reduce model complexity, encouraging the model to learn simpler patterns that generalize better to unseen data.

AApply dimensionality reduction

While dimensionality reduction can sometimes help reduce complexity and overfitting, it is not the primary or most direct method to fix an already overfit model, as regularization specifically targets the model's learning process to prevent memorization.

BAdd additional features

Adding additional features typically increases model complexity and the risk of overfitting, which would worsen the problem of poor generalization in production rather than solving it.

CAdd regularizationCorrect

Adding regularization techniques, such as L1, L2 (weight decay), or dropout, directly addresses overfitting by penalizing complex models and encouraging simpler, more generalizable solutions, thereby improving the model's performance on unseen data in a production environment. These techniques prevent the model from memorizing the training data, forcing it to learn more robust features.

DModify the learning rate

Modifying the learning rate primarily affects the convergence speed and stability of the training process, but it does not directly prevent a model from overfitting to the training data once convergence is achieved.

Concept tested: Addressing overfitting in ML models

Source: https://developers.google.com/machine-learning/crash-course/regularization-for-simplicity/one-shot

Topics

#Overfitting#Generalization#Regularization#Model performance

Community Discussion

No community discussion yet for this question.

Full MLS-C01 Practice