Skip to content

GroupedTimeSeriesSplit with params - gap and test_size #19072

Open

Description

@getgaurav2

To include gap and test_size on the GroupTimeSeriesSplit function ( PR #16236 ) to stay consistent with the params in class TimeSeriesSplit.
This Feature request is in response to a comment by @albertvillanova on PR #16236 for feature #14257.
The implementation was left for a future PR pending discussion on the desired behavior .

  • Param gap shall add a gap between the train group and the test group while preserving the temporal order and group boundaries.
  • Param test_size shall limit the size of the test_group with each split.

On a recent Kaggle Competition this modification was implemented by user : marketneutral in this Notebook . The name of the class on the notebook is PurgedGroupTimeSeriesSplit

If the above notebook captures the idea as intended then it can be included in a PR as is .

cc: @jnothman , @ogrisel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions