Optim.jl icon indicating copy to clipboard operation
Optim.jl copied to clipboard

More info in callbacks

Open antoine-levitt opened this issue 5 years ago • 3 comments

Just ran into this the other day, I wanted to access the current iterate in the callback and couldn't. In general I'm a big fan of passing as much information as available in callbacks (possibly not documenting it so you don't commit to an API). I also find named tuples are nice for this, instead of typed structs or dicts.

antoine-levitt avatar Sep 05 '20 18:09 antoine-levitt

Yup, I totally agree. I think there has been a discussion around this before. Do you have any specific ideas? This will be very breaking and I was thinking of tagging tonight :)

pkofod avatar Sep 05 '20 18:09 pkofod

Nothing special, I worked around it, just thought I'd open the issue as a feature request for your fabled new rewrite :-p

antoine-levitt avatar Sep 05 '20 18:09 antoine-levitt

Okay. I actually haven't included callbcks yet but it's a very good point

pkofod avatar Sep 05 '20 18:09 pkofod