Skip to content
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

Supply Multiplevariate data to Predict() #237

Open
rdpratti opened this issue Mar 31, 2024 · 1 comment
Open

Supply Multiplevariate data to Predict() #237

rdpratti opened this issue Mar 31, 2024 · 1 comment

Comments

@rdpratti
Copy link

Hi, I wanted to continue the conversation around autots ability to do multivariate analysis.

I have tried the stand-alone Sarimax algorithm with its exog parameter capabilities to add covariates to make better predictions, however, it did not improve the predictions.

I like autots's capabilities to find better performing algorithms/models from a set.

I submitted a series of tests, where I trained the model on Amazon stock data. I supplied model_list ='multivariate' , I saw that multivariate algorithms were applied (i.e. MultivariateRegression, RRVAR, etc). I then saved the model.csv file with the idea that I would like to use that with test data to predict.

I refit the model using the training data and the model.csv file. When trying to predict, I could not figure out how to supply my test_df to provide the additonal covariates that need to be used for prediction.

Thanks for your help.

rd

@winedarksea
Copy link
Owner

Exogenous/covariates often don't improve the performance very much. It's the whole signal and noise thing. Usually the signal that is any relationship between the two series is pretty small and buried in the large amounts of noise that most time series have. But sometimes there is a useful feature.

The series of commands I think you are looking for is something like this:

model = AutoTS(...)
model.import_best_model("saved_template.csv")
model.fit_data(df)
prediction = model.predict()

Let me know if that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants