We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Scipy's TNC implementation does not set the number of Jacobian evaluations in the ScipyOptimizeResult, which causes the jaxopt wrapper to throw:
ScipyOptimizeResult
ScipyMinimize(method="TNC", fun=lambda x: x**2).run(1.0) # Traceback (most recent call last): # ... # KeyError: 'njev'
I'm running jaxopt 0.8 and Scipy 1.11.2.
The text was updated successfully, but these errors were encountered:
I believe this is the same issue as #531.
@zaccharieramzi Looks like some attributes are missing depending on the solver.
Sorry, something went wrong.
@mblondel indeed it's probably the same thing.
The scipy doc is a bit elusive on the topic since it says that njev is always accessible normally.
njev
I will try to come up with a quick fix.
Successfully merging a pull request may close this issue.
Scipy's TNC implementation does not set the number of Jacobian evaluations in the
ScipyOptimizeResult
, which causes the jaxopt wrapper to throw:I'm running jaxopt 0.8 and Scipy 1.11.2.
The text was updated successfully, but these errors were encountered: