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

Implemented Nesterov trainer #18

Merged
merged 2 commits into from
Oct 29, 2014
Merged

Implemented Nesterov trainer #18

merged 2 commits into from
Oct 29, 2014

Conversation

pgmmpk
Copy link

@pgmmpk pgmmpk commented Oct 29, 2014

Added Nesterov trainer.

Code adapted from Caffe:

BVLC/caffe#53

https://github.com/BVLC/caffe/blob/master/src/caffe/solver.cpp

@karpathy
Copy link
Owner

Thanks! It's a little tricky to derive the nesterov update "backwards", but this looks right to me. It also matches the Caffe implementation, which I will assume was appropriately scrutinized before commit. The slight discrepancy is a minus sign backwards, which stems from the fact that Caffe does the update with a minus sign, keeping the semantics of a gradient throughout, while ConvNetJS simply adds the step to the current parameter vector.

Thanks!

karpathy added a commit that referenced this pull request Oct 29, 2014
Implemented Nesterov trainer
@karpathy karpathy merged commit a530c06 into karpathy:master Oct 29, 2014
Shimin-Zhang pushed a commit to Shimin-Zhang/convnetjs that referenced this pull request Mar 31, 2015
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

Successfully merging this pull request may close these issues.

3 participants