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

Bug in AdagradTrainer #29

Closed
gianlucabertani opened this issue Feb 17, 2017 · 1 comment
Closed

Bug in AdagradTrainer #29

gianlucabertani opened this issue Feb 17, 2017 · 1 comment

Comments

@gianlucabertani
Copy link

Hello,

there's a minor bug in AdagradTrainer at line 81. It currently reads:

    vol.SetGradient(i, 0.0); // zero out gradient so that we can begin accumulating anew

But in that point the correct index to use is j, not i:

    vol.SetGradient(j, 0.0); // zero out gradient so that we can begin accumulating anew

Forgive me if I don't submit a pull request, my fork has some more commits on top and branching just for this little fix would be a bit of a hassle.
Thanks again for your great work!

@cbovar
Copy link
Owner

cbovar commented Feb 18, 2017 via email

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