-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
ENH: optimize.root
: add warning for invalid inner parameters in newton_krylov
method
#22809
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
Conversation
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.
Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
Hi @lucascolley, I like it. This is definitely a nice improvement 🙂 The warning message currently says: "Please check inner method documentation for valid options." I think we could go beyond that, either by making a "did you mean xyz" proposal using difflib or by just adding the valid options into the warning message. The information needed for this is already available, so the implementation would be really quick. |
thanks @janosg !
would you be willing to have a go at this @swstkm ? |
@lucascolley @janosg does this do the job? |
Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
Co-authored-by: Jake Bowhay <60778417+j-bowhay@users.noreply.github.com>
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.
Thanks @swstkm, this looks basically ready just two places where it would be great to have some test coverage
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.
Thanks all, failures look unrelated
Reference issue
Closes #21986
What does this implement/fix?
Improves parameter validation in Krylov solver in
optimize.root
by raising warnings for invalid inner parameters but ensuring no warnings for user-provided callable methods.Additional information