Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Conversation

peterdudfield
Copy link
Contributor

@peterdudfield peterdudfield commented Oct 7, 2021

Add split method for random day, and year for test set

Pull Request

Description

add method to split by

  • random day for train and test,
  • and by year for test

Note: Have not changed default method to this, and we may not have the data yet for this

Fixes #

How Has This Been Tested?

Added a unittest

  • No
  • Yes

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

@peterdudfield peterdudfield linked an issue Oct 7, 2021 that may be closed by this pull request
Copy link
Contributor

@JackKelly JackKelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just some small comments...

validation_test_datetime_split: pd.Timestamp,
) -> (List[pd.Timestamp], List[pd.Timestamp], List[pd.Timestamp]):
"""
Split datetimes into train, validation and test by two specific datetime splits
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please mention that the train_validation_datetime_split must come before the validation_test_datetime_split

@peterdudfield peterdudfield merged commit 73bbe20 into main Oct 7, 2021
@peterdudfield peterdudfield deleted the issue/206-split branch October 7, 2021 21:07
@peterdudfield peterdudfield mentioned this pull request Oct 18, 2021
7 tasks
@JackKelly JackKelly linked an issue Oct 18, 2021 that may be closed by this pull request
7 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Split test:year Split: Train Test Validation

2 participants