Skip to content
New issue

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

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

Already on GitHub? # to your account

changing learning rate after 20 epochs error #6

Open
vipul43 opened this issue Jul 2, 2020 · 0 comments
Open

changing learning rate after 20 epochs error #6

vipul43 opened this issue Jul 2, 2020 · 0 comments

Comments

@vipul43
Copy link

vipul43 commented Jul 2, 2020

code uses a direct method to change the learning rate of the model to 0.0001 which raises an error for reason unknown. A quick fix would be to use keras backend functionality to change the learning rate.
Instead of model.optimizer.lr = 0.0001 use K.set_value(model.optimizer.lr, 0.0001) after importing keras.backend as K

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

No branches or pull requests

1 participant