-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
How to get latest minimizer (u) instead of the best one for optimization? #740
Comments
I am genuinely surprised 🤣 You can use a callback to store the
|
Yeah, I actually found the things that I'd been looking for, so 👍 (except the one above) Thank you! Ok, this is actually the way I am doing it right now... maybe this is something for a feature request (e.g. adding |
Since some solvers already store this in their results I haven't seen a reason to do this and increase the memory usage even more for the results (and you as the user can do it with the callback) |
If some solvers already store this, then you just use the same reference and there's no extra memory cost? |
I have another example where this is very common: Stochastic batching when optimizing ML models... without the option to pick the Also: The callback gets called one last time for the best element after optimization finished, so with the code above:
I didn't check the implementation, but wouldn't it be possible to let a keyword decide if either the state Thanks! |
I am not sure if this was specific for Optimisers.jl solvers since you mention stochastic methods, if it is you can pass |
Question❓
Hi,
I really like the quality of the documentation, however I struggle to find a functionality I am pretty sure that it exists:
If I get this correct, Optimization.jl always returns the minimizer
u
for the best (minimum/maximum)f
evaluation - this is nice and often what I want.However in some cases one is more interested in the latest
u
- so the last try to find a new optimum (think e.g. of having some stochastic effects in yourf
). Is there a keyword or similar?I would assume to find this on this page of the docu:
Common-Solver-Options-(Solve-Keyword-Arguments)
Thanks in advance!
The text was updated successfully, but these errors were encountered: