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:
- add a copy of cross_val_predict that allows non-partitions. This would allow other non-partition use cases, not just for timebasedcv.
- add a differently named class that extends cvp to allow non-partitions AND returns train-and-test scores and train-and-test predictions.
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: