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

How to reset the lr cycle #8

Open
iNLyze opened this issue Apr 7, 2018 · 0 comments
Open

How to reset the lr cycle #8

iNLyze opened this issue Apr 7, 2018 · 0 comments

Comments

@iNLyze
Copy link

iNLyze commented Apr 7, 2018

Dear @bckenstler ,

recently I stumbled across an issue with CLR calling from keras 2.1.5:
I ran using

CyclicLR(base_lr=1e-5, max_lr=8e-4, mode='triangular2', step_size=trn_steps//10, scale_mode='iterations')

where trn_steps is equal to steps_per_epoch in model.fit_generator.

Now, my observation is that during the first epoch CLR goes through 10 cycles (as planned), but then lr stays constant throughout the remaining epochs. How do I properly reset the lr cycle? I tried scale_mode='cycle' as well, but no luck. What am I doing wrong?

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