-
Notifications
You must be signed in to change notification settings - Fork 15
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
Gradient Solvers Stopping After 1 iteration #1
Comments
You're going to have to be very specific on this. Post some failing code. Are you getting an exception? Is your solver going out of scope? What is the result of the optimize call? Do your algorithm choices require multiple parameters? Some require more than one. Some require that set_stopval be called, and I haven't exposed a way to do that yet. What is your platform? |
I am sure this is probably something very embarrassing and minor on my end. Originally I thought the problem came from the fact I was calling your library from F# (and it was some cryptic interop issue). However, I tested the following in C#, using both .net 4.0 and 4.5 on a stock standard laptop running windows 8.1. Ideally I wish to utilize the LBFGS algorithm (which I don't think requires more parameters then I have specified) namespace ConsoleApplication1
} |
Thanks for the report. There was an error in the wrapper for marshaling the gradient. It's been repaired. I've uploaded a new package. Try it. |
It all seems to be working :). Thanks for that, now I can optimize things until my heart is content. |
Not sure what I am doing wrong, but all gradient based algorithms are stopping after one iteration (including your example). Those that do not use gradient information work fine.
The text was updated successfully, but these errors were encountered: