Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to split the data into train, test, and validation #1553

Open
sauravsingh-couture opened this issue Apr 5, 2024 · 1 comment
Open

How to split the data into train, test, and validation #1553

sauravsingh-couture opened this issue Apr 5, 2024 · 1 comment

Comments

@sauravsingh-couture
Copy link

  • PyTorch-Forecasting version: 1.0.0
  • PyTorch version: 2.0.1
  • Python version: 3.8
  • Operating System: Linux

I have data of 17 months, so my time_idx ranges from 0-16. There are total 3664 unique ids in my data. So my data has total rows 62288.
I just want to split my data into train, val, and test.

  • Train data ranges from 0 to 14 time_idx
  • Val data should have 15 time_idx
  • Test data should have 16 time_idx

So how would I achieve it from inbuilt class TimeSeriesDataset and inbuilt class method .from_dataset?

@ivanightingale
Copy link

You can refer to this example. See Cell 5 where trainingand validation are defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants