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

Finish training if we cannot get better dev ppl. for N hours. #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MorinoseiMorizo
Copy link
Contributor

I added the function to finish training if we cannot get better dev ppl. for N hours.
In the default settings I set it to 24 hours, so if 24 hours have passed after getting the best dev ppl.,
training will be finished automatically.

If set it to 0, we do not stop with this criteria.

@odashi
Copy link
Owner

odashi commented Jan 13, 2017

I thought that the early stopping is usually done based on number of evaluations (e.g. if there is no dev-loss improvement in recent K evaluations, then the trainer would stop). Why is PR based on the fixed time?

@@ -180,6 +180,10 @@ dropout_ratio=0.3
; Maximum number of batch data to be trained.
max_iteration=10000

; Training will be stopped if we cannot get the lowest dev ppl. for this hours.
; If this is set to 0, we don't stop training with this criteria.
max_waiting_hour=24
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method could not stop the trainer as soon as the dev-loss goes worse. Maybe it is better to remove this behavior and to recommend to set some large value (e.g. 114514) to disable early stopping virtually.

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

Successfully merging this pull request may close these issues.

2 participants