Do not print "optimization completed successfully" scipy.optimize.fmin?

Is there a way to quietly use scipy.optimize.fmin? That is, it does not print, for example.

Optimization terminated successfully. Current function value: 0.000000 Iterations: 13 Function evaluations: 30 

when running the code?

This can be useful, for example, loops that last for a while.

+7
python scipy
source share
1 answer

Setting disp=False stops scipy.optimize.fmin when printing messages.

+9
source share

All Articles