139 views
0 0 votes

Good practices to avoid overfitting include: 

 

  1. Using a two part cost function which includes a regularizer to penalize model complexity.
  2. Using a good optimizer to minimize error on training data.
  3. Building a structure of nested subsets of models and train learning machines in each subset, starting from the inner subset, and stopping when the cross-validation error starts increasing.
  4. Discarding 50% of randomly chosen samples.

1 Answer

0 0 votes
Overfitting occurs when a model learns the training data too well, including its inherent noise, which leads to poor generalization on unseen data. Evaluating the provided options for preventing this:
 
  • Option A is a good practice: Using a two-part cost function that includes a regularizer explicitly penalizes model complexity. By adding this penalty (such as $L_1$ or $L_2$ regularization) to the training error, the model is forced to learn simpler, smoother patterns rather than contorting to fit every noisy data point.
  • Option B is not a good practice: Relying solely on an optimizer to minimize error specifically on the training data is the primary cause of overfitting. Without constraints, driving the training error perfectly to zero almost guarantees the model will perform poorly on new data.
  • Option C is a good practice: This describes a strategy incorporating Structural Risk Minimization and early stopping based on cross-validation. By monitoring performance on a separate validation set and stopping the training process as soon as the cross-validation error starts to increase, you halt the model right before it begins memorizing the training data at the expense of generalization.
  • Option D is not a good practice: Randomly discarding 50% of your samples reduces the amount of information the model has available to learn the true underlying distribution. Less training data generally increases the model's variance and makes it much more susceptible to overfitting the remaining small subset.
Therefore, the correct options are A and C.
Position:
Show:

Related questions

0 0 votes
0 0 answers
132
132 views
GO Classes asked Mar 13, 2025
132 views
If the model resulting from Ridge regression is currently overfitting, what are possible things to reduce overfitting ? Select all that apply. Collect new data to increas...
0 0 votes
1 1 answer
137
137 views
GO Classes asked Mar 17, 2025
137 views
Which model do you prefer, assuming both have zero training error?Model structure (for both models):$$h_{\boldsymbol{\theta}}(x)=\theta_0+\theta_1 x+\theta_2 x^2+\theta_3...
0 0 votes
0 0 answers
114
114 views
GO Classes asked Mar 13, 2025
114 views
For ridge regression, if the regularization parameter is too large, which of the following is true ? Large coefficients will not be penalizedThe model will underfit the d...
0 0 votes
0 0 answers
122
122 views
GO Classes asked Mar 13, 2025
122 views
To prevent overfitting of our linear model, we would apply regularization on the model. Which of the following datasets should we evaluate using our model in order to dec...