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 is the update for "train_on_batch" determined? #3303

Closed
gxlzj opened this issue Jul 25, 2016 · 2 comments
Closed

How is the update for "train_on_batch" determined? #3303

gxlzj opened this issue Jul 25, 2016 · 2 comments

Comments

@gxlzj
Copy link

gxlzj commented Jul 25, 2016

Dear developers and friends,

I am a new user to keras. My question is as fellows:

I see for "train_on_batch", the optimizer only do one single gradient update. But how is the learning rate/ momentum used in this setting?

For example, for SGD, we have a learning rate and momentum. When I use "train_on_batch" manually, will optimizer SGD automatically store the gradient update and use it as momentum when I use "train_on_batch" again next time?

@codekansas
Copy link
Contributor

Yes, it will, consult here. Momentum is persistent between batches.

@stale stale bot added the stale label May 23, 2017
@stale
Copy link

stale bot commented May 23, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.

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