Nixtla / neuralforecast

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

feat: Added cross-validation tutorial #897

Closed MMenchero closed 7 months ago

MMenchero commented 7 months ago

This is part of the new docs for neuralforecast.

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

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

CLAassistant commented 7 months ago

CLA assistant check
All committers have signed the CLA.

CLAassistant commented 7 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.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

View / edit / reply to this conversation on ReviewNB

jmoralez commented on 2024-02-22T15:52:38Z ----------------------------------------------------------------

typo in category (says catefory). also please use the term timestamp for ds, I think some errors refer to that as timestamps


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

View / edit / reply to this conversation on ReviewNB

jmoralez commented on 2024-02-22T15:52:39Z ----------------------------------------------------------------

Line #2.    StatsForecast.plot(Y_df)

This method calls utilsforecast.plotting.plot_series under the hood. Also statsforecast is not a dependency of neural (utils is). Can you please replace this with the plot_series function?


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

View / edit / reply to this conversation on ReviewNB

jmoralez commented on 2024-02-22T15:52:40Z ----------------------------------------------------------------

I think we could explain with more detail here how the process works, since it's a bit different with respect to the other libs. The models are trained only once and are used to generate predictions over several windows. The refit argument (which is on the main branch but hasn't been released) can control the retraining behavior (it currently defaults to False) but can be an integer or True


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

View / edit / reply to this conversation on ReviewNB

jmoralez commented on 2024-02-22T15:52:41Z ----------------------------------------------------------------

The 80 and 90% intervals are because those are the defaults of the MQLoss, I think we should clarify that.


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

View / edit / reply to this conversation on ReviewNB

jmoralez commented on 2024-02-22T15:52:42Z ----------------------------------------------------------------

Please use the following here:

from utilsforecast.evaluation import evaluate
from utilsforecast.losses import rmse

The evaluate function is very similar to accuracy and we're going to remove the metrics module from datasetsforecast in the next release.


MMenchero commented on 2024-02-28T02:47:09Z ----------------------------------------------------------------

All suggested changes have been implemented.