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

Question about SGD update #6

Open
codlife opened this issue Nov 19, 2016 · 2 comments
Open

Question about SGD update #6

codlife opened this issue Nov 19, 2016 · 2 comments

Comments

@codlife
Copy link

codlife commented Nov 19, 2016

Hi @zhangyuc
I find in your code, the weight update is as below:
Local mode: number of cores on the local machine

while(k < n) { values(k) *= - actual_stepsize / math.sqrt(s(k) + 1e-16f) k += 1 }
what troube me is why the update is this, which seem not the standard format:
such as w = w - stepsize*gradient.
thank you!

@zhangyuc
Copy link
Owner

It implements the AdaGrad algorithm (http://www.jmlr.org/papers/volume12/duchi11a/duchi11a.pdf), which chooses different stepsizes for different coordinates. The stepsize of coordinate k is controlled by the accumulated gradient squared-norm s(k).

@codlife
Copy link
Author

codlife commented Nov 19, 2016

got it,thank you!

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