How to split dataset into train and valid? #1042
Replies: 1 comment 2 replies
-
I made a mistake. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My train dataloader length is equal to valid dataloader length. Why?
In nf codes, L329 create self.val_size, but not used in creating datamodule L336
neuralforecast/neuralforecast/common/_base_model.py
Lines 329 to 343 in 90b6fd0
Then pytorch_lightning.Trainer is called in L357 and does not use val_size if is_local=True
neuralforecast/neuralforecast/common/_base_model.py
Line 357 in 90b6fd0
Also, In TimeSeriesDataModule, the function train_dataloader and val_dataloader use the same dataset(both self.dataset).
neuralforecast/neuralforecast/tsdataset.py
Lines 394 to 412 in 90b6fd0
Is this a mistake or I use nf in a wrong way?
neuralforecast=1.7.2
pytorch_lightning=2.2.5
Beta Was this translation helpful? Give feedback.
All reactions