{ } Raw JSON

bundles / scipy latest / 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 None

A user-provided callback wrapped with _wrap_callback

res : OptimizeResult

Information about the current iterate

Returns

halt : bool

True if minimization should stop

Aliases

  • scipy.differentiate.eim._call_callback_maybe_halt