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
Weird Condition in SGD #461
Comments
Hi there, If the step size is too large, the optimization may jump back and forth in a valley, taking progressively larger steps, until the overall objective diverges to NaN. That's the justification for the warning. In various situations where I've used SGD (that led to this comment being added), reducing the step size was usually a solution to the problem that caused convergence to a reasonable objective value. I hope this is helpful; let me know if I should clarify further. Thanks, |
Hey, Thanks for the answer. Sorry --- apparently I had not made myself clear enough. I was trying to ask the Thanks for your time |
Yep, that's exactly it. See here: |
Hi, maybe you can consider using
in c++11(any intention to upgrade to c++14?), maybe this is more portable and easier to read |
Yes, I agree with @stereomatchingkiss . My intention was not to disturb you with the subtleties like this, but to understand what was going on. Yet, if your style guide is not strictly against the use of C++11 or above, you might consider using |
Fixed in 09cd0d6; thanks for the suggestions. I think it's important to consider little readability details like this, so if you find anything else you think should be changed, please feel free to open more issues. :) |
In this file, there is a condition on line 63 which says:
Is this a bug, or what is the reasoning behind it?
The text was updated successfully, but these errors were encountered: