Nixtla / neuralforecast

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

fix cross_validation when the id is the index #951

Closed jmoralez closed 3 months ago

jmoralez commented 3 months ago

If the user provided the id as the index to the cross_validation method a KeyError was raised because it'd always look for it in the columns. This adds the same check as for the other methods where a FutureWarning is issued but it still works.

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