prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Iterations shouldn't be hardcoded

Open vruvora opened this issue 8 years ago • 3 comments

Would it be possible for us to not hardcode the iterations here: https://github.com/facebook/prophet/blob/8d804fce0cf6301c6ee6cdbdde3bcb6d377e7e19/python/fbprophet/forecaster.py#L1003?

Recommended but would like the possibility of doing early stopping or code in few numbers of iterations if I am only doing it for testing purposes.

vruvora avatar Jun 27 '18 17:06 vruvora

The default value is a smaller number and not always enough, hence a large value is supplied here. Probably the best thing to do would be to check if iter is supplied in kwargs and add iter=1e4 to kwargs if not.

bletham avatar Jul 10 '18 04:07 bletham

This is done in https://github.com/facebook/prophet/commit/1d398c679d40007ade0dcf81ae0022cceaa1ce8b

bletham avatar Dec 04 '18 03:12 bletham

Pushed to PyPI.

bletham avatar Dec 20 '18 20:12 bletham