Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regularization and Out of Sample Error #204

Open
mvalsania opened this issue Dec 9, 2024 · 2 comments
Open

Regularization and Out of Sample Error #204

mvalsania opened this issue Dec 9, 2024 · 2 comments
Labels

Comments

@mvalsania
Copy link
Contributor

Hey there!

I was just curious about the question mark under Eout. Are we saying it is undetermined because it will depend on the extent of the change in Ein and |Eout - Ein|, or can we confidently say that if the model was already overfitting the data then Eout will go down and if it was already underfitting the data then Eout will go up?

In other words, can we make any claims on the extent of change of Ein and |Ein - Eout| based on whether the model was already overfitting or underfitting?

image

Thanks!

@mikeizbicki
Copy link
Owner

Are we saying it is undetermined because it will depend on the extent of the change in Ein and |Eout - Ein|

This is correct.

or can we confidently say that if the model was already overfitting the data then Eout will go down and if it was already underfitting the data then Eout will go up?

This is not necessarily correct. For example, you could be currently overfitting and so choose to add regularization. But you might add too much, overshoot, and then be underfitting "worse" than you were previously overfitting, resulting in a higher out of sample error even though you moved $\lambda$ in the right direction.

@mvalsania
Copy link
Contributor Author

That makes sense, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants