Nixtla / neuralforecast

Scalable and user friendly neural :brain: forecasting algorithms.
https://nixtlaverse.nixtla.io/neuralforecast
Apache License 2.0
2.7k stars 313 forks source link

[FEAT] Sliding predictions for an arbitrary DF #940

Open howarth opened 3 months ago

howarth commented 3 months ago

I want to be able to run something similar to predict_insample but with an arbitrary df instead of the training data. I didn't see anywhere else where I could run sliding window predictions. I moved the bulk of predict_insample to _predict_sliding and then I have predict_insample call _predict_sliding. Similarly, predict_sliding(df, ..) calls _predict_sliding

This is not complete, I don't think it will work with exogenous variables, and it definitely will not work with static variables. I will figure that out. I wanted to first get feedback on if anything I'm doing here is incorrect.

I think this is the type of predictions we will want to do for many of the medical projects at Auton

review-notebook-app[bot] commented 3 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

CLAassistant commented 3 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Dan Howarth seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant commented 3 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Dan Howarth seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

elephaint commented 2 months ago

Thanks for submitting a PR!

What is the use case for this?