Skip to content
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

Docs for L-BFGS-B mention non-existent parameter #4575

Closed
rmcgibbo opened this issue Mar 1, 2015 · 5 comments
Closed

Docs for L-BFGS-B mention non-existent parameter #4575

rmcgibbo opened this issue Mar 1, 2015 · 5 comments
Labels
duplicate Issues that describe the same problem or that are reported multiple times scipy.optimize
Milestone

Comments

@rmcgibbo
Copy link
Contributor

rmcgibbo commented Mar 1, 2015

The documentation for _minimize_lbfgsb, and scipy.optimize.show_options('minimize', 'l-bfgs-b') mention the parameter factr, which is actually not a parameter that the function lets you set.

https://github.com/scipy/scipy/blob/master/scipy/optimize/lbfgsb.py#L216-L222

@larsmans
Copy link
Contributor

larsmans commented Mar 1, 2015

Indeed. Also, the code is doing something fishy: fmin_l_bfgs_b sets

ftol = factr * np.finfo(float).eps

then calls _minimize_lbfgsb with this ftol, which in turn does

factr = ftol / np.finfo(float).eps

Looks rather wasteful to me. ftol is not actually used except to derive factr.

@pv
Copy link
Member

pv commented Mar 1, 2015

@larsmans: the reason for that is to make ftol have uniform meaning across solvers. fmin_l_bfgs_b is the old interface function, should be considered deprecated.

@rmcgibbo
Copy link
Contributor Author

rmcgibbo commented Mar 2, 2015

I wrote a small checker that goes through callables and looks for mismatches between the docstrings (parsed with numpydoc) and signatures, and found a few other issues as well. I'll open a separate issue for them all together.

https://github.com/rmcgibbo/doccheck

@rgommers
Copy link
Member

rgommers commented Mar 2, 2015

@rmcgibbo nice! Your checker might find a home in the scipy repo under tools/. I added a similar checker there a while ago to find missing objects in the html docs (refguide_check.py).

@jllanfranchi
Copy link
Contributor

Related and/or duplicated issues #5231 and #7121. See PR #7252 to update the docs.

@pv pv added this to the 1.0 milestone Apr 9, 2017
@pv pv closed this as completed Apr 9, 2017
@pv pv added the duplicate Issues that describe the same problem or that are reported multiple times label Apr 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues that describe the same problem or that are reported multiple times scipy.optimize
Projects
None yet
Development

No branches or pull requests

6 participants