bundles / scipy 1.17.1 / scipy / _lib / _util / _call_callback_maybe_halt
function
scipy._lib._util:_call_callback_maybe_halt
source: /scipy/_lib/_util.py :988
Signature
def _call_callback_maybe_halt ( callback , res ) Summary
Call wrapped callback; return True if algorithm should stop.
Parameters
callback: callable or NoneA user-provided callback wrapped with _wrap_callback
res: OptimizeResultInformation about the current iterate
Returns
halt: boolTrue if minimization should stop
Aliases
-
scipy.differentiate.eim._call_callback_maybe_halt