andim / noisyopt

Python library for optimizing noisy functions.
http://noisyopt.readthedocs.io/
MIT License
89 stars 15 forks source link

minimizeSPSA crashes with an unhelpful error if run with niter<100 and disp=True. #17

Closed sclamons closed 1 year ago

sclamons commented 2 years ago

When disp=True, minimizeSPSA prints 100 reports. Part of the calculation of when to print is

k % (niter//100)

which is a mod-by-zero error if niter<100.

andim commented 1 year ago

Thanks! This is fixed in c2a912ea65f33c78bb4d3b8baf88b7bbdb64433f