This is documentation for an old release of SciPy (version 0.10.1). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.maxentropy.basemodel.setcallback

basemodel.setcallback(callback=None, callback_dual=None, callback_grad=None)

Sets callback functions to be called every iteration, every function evaluation, or every gradient evaluation. All callback functions are passed one argument, the current model object.

Note that line search algorithms in e.g. CG make potentially several function and gradient evaluations per iteration, some of which we expect to be poor.

Previous topic

scipy.maxentropy.basemodel.reset

Next topic

scipy.maxentropy.basemodel.setparams

This Page