scijit.optimize.OptimizeWarning¶
- exception scijit.optimize.OptimizeWarning¶
Bases:
UserWarningWarning category for recoverable problems during optimization.
See also
scipy.optimize.OptimizeWarningThe scipy category this mirrors.
Notes
This is a DIFFERENT CLASS from
scipy.optimize.OptimizeWarning, with the same name and the same base. A filter naming this class selects it, and so does one namingUserWarningor a barewarnings.catch_warnings(record=True). A filter naming scipy’s class does NOT:simplefilter('error', scipy.optimize.OptimizeWarning)leaves this warning as a warning, andexcept scijit.optimize.OptimizeWarningdoes not catch a scipy one. Ported code that turns scipy’s class into an exception has to name this one as well. Importing scipy’s would put scipy in this package’s runtime dependencies, which it is not.curve_fitis the one site that raises it here, on the branch where the covariance could not be estimated. scipy also raises it for an unknown solver option and from severallinprogandfminboundconditions.