-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Croston Method #97
Comments
some references :
|
Added some options to control croston model.
Allow building croston models (disabled by default)
Real croston implementation (WIP)
Croston options (with default values) : class cCrostonOptions:
def __init__(self):
# can be : "CROSTON" , "SBJ" , "SBA", everything else is equivalent to "CROSTON"
self.mMethod = None;
self.mAlpha = 0.1
# minimum amount of zeros for a series to be intermittent
self.mZeroRate = 0.1 |
Sample script with croston model : https://github.com/antoinecarme/pyaf/blob/croston/tests/croston/croston_test_1_SBJ.py and log :
|
Correcetd croston forecast (constant)
fill first empty fit data with zero counts (when signal starts with zeros)
Allow optimizing alpha when not set (cCrostonOptions.mAlpha = None)
Allow optimizing alpha when not set (cCrostonOptions.mAlpha = None)
Updated Makefile. Added croston tests
Fixed. Croston method is now supported but not used by default. |
This is a quite known method for forecasting intermittent demand (time series with a small number of non-zero observations).
R implementation :
https://www.rdocumentation.org/packages/forecast/versions/8.4/topics/croston
See if Croston method can be implemented efficiently as the last component of a PyAF signal decompostion (any other option ?).
The text was updated successfully, but these errors were encountered: