Skip to content

[FEATURE] add a cross_val_predict copy that works with TimebaseCV #777

Description

@joshdunnlime

TimebasedCV is great. I use it a lot, however it doesn't play nicely with cross_val_predict and so I find myself rewriting for-loops, gathering data in DataFrames etc. See this common issue on SO: scikit-learn-cross-val-predict-only-works-for-partitions. This slows quick model implementation, checks etc.

I also find myself having similar issues when trying to run CV and get both train-and-test scores and train-and-test predictions. None of the cvp, cvs or cv in sklearn covers all of these use cases and so I am left with looping.

Propsals:

  1. add a copy of cross_val_predict that allows non-partitions. This would allow other non-partition use cases, not just for timebasedcv.
  2. add a differently named class that extends cvp to allow non-partitions AND returns train-and-test scores and train-and-test predictions.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions