-
Notifications
You must be signed in to change notification settings - Fork 38
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 new primitive: Arima model #168
Comments
Thanks for opening the issue @AlexanderGeiger, but I have some concerns about the proposed approach and implementation. My understanding of the ARIMA model is that it is fitted on a single sequence of datapoints (a single time series) and then it is used to forecast one or more values immediately after that sequence which it has been fitted to. On the contrary, models like an LSTM based regressor are fitted on both a collection of sequences of data points and the values after them and later on they can be used to forecast the values after any new sequence of data points that they are given. In order words, even though the ARIMA class has a So, when it comes to the exact implementation, I think the class prototype should be something like this:
then, at the JSON level, you would specify only the
Also note the name of the class: when writing an adapter, and as far as it possible, make the name of the class or function be exactly the same as the one that you are adapting. So, in this case, the adapter class should be called |
Hi @csala , Thank you for the feedback! |
Hi @AlexanderGeiger Yes! Now it looks exactly as I had thought about it. :-) It would be great to also add a pipeline that uses it, but I'm afraid there is no timeseries dataset yet in the repo, so perhaps you can create the PR without the pipeline and we can add it later when we add the dataset. |
Description
ARIMA models are often used to describe time series data. Therefore we should add an Arima primitive for time series forecasting. We can use the statsmodels library.
The primitive takes an array as input, on which an Arima model is fitted. The forecast method returns another array of predictions.
What I Did
I started implementing this primitive for testing purposes in the arima branch on my fork, which you can check out.
Concretely, I included an adapter for statsmodels and a Primitive JSON file.
Any feedback on the primitive itself and the implementation would be highly appreciated.
The text was updated successfully, but these errors were encountered: