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

Refactor get_datasets functionality #60

Merged
merged 2 commits into from
May 31, 2024
Merged

Refactor get_datasets functionality #60

merged 2 commits into from
May 31, 2024

Conversation

wgifford
Copy link
Collaborator

@wgifford wgifford commented May 31, 2024

Update the TimeSeriesPreprocessor to deprecate get_datasets functionality.

Create new standalone function get_datasets which takes a TimeSeriesPreprocessor -- functionally equivalent to previous get_datasets.

Create new standalone function prepare_data_splits which splits the input dataframe according to the split config. This function is used by get_datasets.

Rationale:
In some cases, notably when using the time series forecasting pipeline, we need to split the dataframes in the same way as get_datasets but we do not require pytorch datasets.

Addresses discussion in: #53

@wgifford wgifford merged commit 879c707 into main May 31, 2024
3 checks passed
@wgifford wgifford deleted the get_datasets branch May 31, 2024 22:22
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

Successfully merging this pull request may close these issues.

1 participant