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

Non-Tune Early Stopping criterion #1

Open
jmsckv opened this issue Jan 8, 2021 · 0 comments
Open

Non-Tune Early Stopping criterion #1

jmsckv opened this issue Jan 8, 2021 · 0 comments

Comments

@jmsckv
Copy link
Owner

jmsckv commented Jan 8, 2021

Functionality that stops a trial if validation performance has not improved after X epochs.
Should avoid blocking of resources (especially at the beginning of training).

Tune has sth. like a Stopper class that should be used.
Implement as a configurable hyperparameter, default behaviour could be after a fraction of max epochs.

Sth like:
s = Stopper()
grace_period_no_improvement = config.get('early_stop_no_improvement', int(config['max_t']/10))

and then in every iteration:
if updated_best:
cnt = 0
else:
cnt += 1
if cnt > grace_period_no_improvement:
s.stop_trainable()

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

1 participant