-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
DOC: optimize: separate legacy interfaces from new ones #8889
Conversation
The multivariate fminxxx are not really deprecated, are they? I don't remember seeing a decision to deprecate them. |
Ok, maybe deprecated is the wrong word. But they are interfaces that should be avoided in new scripts and I think it would improve the documentation to separate them from the newer and more consistent interfaces. Maybe I can just change the section name to "Old Interfaces" |
Perhaps "legacy" is a more appropriate term than "deprecated". |
Thank you @dlax. "Legacy" is a much better term for describing this functions. |
This restructuring seems like a good idea to me. |
Thank you all for the comments. I have just amend a few minor modifications. Anyone, please let me know if there are other parts that need to be improved or better choice of words that I could use. |
scipy/optimize/__init__.py
Outdated
|
||
show_options - Show specific options optimization solvers | ||
LbfgsInvHessProduct - Linear operator for L-BFGS approximate inverse Hessian | ||
HessianUpdateStrategy - Interface for implementing Hessian update strategies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that the HessianUpdateStrategy
line got dropped (unless I missed it). I guess it should stay along with LbfgsInvHessProduct
in "Hessian Approximation" section above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, just included this line back.
For easy reference, the documentation can be accessed through this link: |
Does it make sense to deprecate those legacy optimizers and throw them out in future release? |
Not really, they're very widely used and they're not broken. We've decided to leave them in place, and just in the docs direct people to the newer interface. |
statsmodels still relies dominantly on the "legacy" interface, even though we have |
To add to statsmodels comment: |
Hi all, in this PR I try to improve the structure of
scipy.optimize
API reference.I tried to separate the new interfaces, such as
minimize
androot
, from the deprecated ones. I think this should make the API reference easier to navigate for new users (and for the more experienced users as well).