Fix (neuraforecast/core/cross-validation): Raise Exception when val_size+test_size is greater than min size of series.#1097
Fix (neuraforecast/core/cross-validation): Raise Exception when val_size+test_size is greater than min size of series.#1097
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
I think the underlying issue is that a bunch of windows filled with zeros are used for training, so this would be fixed by #1059. |
|
I don't know what that means by "breaks". Do you get an error if you specify those numbers to be just slightly above the minimum length? |
I get other errors, like |
Right, if val_size+test_size is greater than the min size of a series, we show a warning, but the code still tries to run. In my test using the ETTm1 dataset, the following didn't fail immediately, but ran indefinitely:
I think it should raise an exception instead and stop running. I think this should solve #400