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

problem: Higher number of epochs lead to worse results? #1879

Open
jbrepogmailcom opened this issue May 21, 2023 · 1 comment
Open

problem: Higher number of epochs lead to worse results? #1879

jbrepogmailcom opened this issue May 21, 2023 · 1 comment

Comments

@jbrepogmailcom
Copy link

When I fit model with 200 epochs, results are pretty good, 54% instead 50% for random selection. But when I raise epochs to 500, I get much worse success ratio, under 50%. Why is that and what is optimal number of epochs?

@saisua
Copy link

saisua commented Jul 4, 2023

I am not from the Autokeras team, but when training ML models, the optimal number of epochs is a difficult problem and there is no final answer. Usually models improve until a local minima and then they can't go further.
I would suggest you to check Tensorflow's callbacks as I believe they work with Autokeras, so you can control the learning rate to optimize said local minima, or stop at the best epoch.
As for trying to get global minima, there is no way to ensure a model will reach global minima, so instead raise the number of trials.

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

No branches or pull requests

2 participants