Is there any built-in way to get scikit-learn to perform shuffled stratified k-fold cross-validation? This is one of the most common CV methods, and I am surprised I couldn't find a built-in method to do this.
I saw that cross_validation.KFold()
has a shuffling flag, but it is not stratified. Unfortunately cross_validation.StratifiedKFold()
does not have such an option, and cross_validation.StratifiedShuffleSplit()
does not produce disjoint folds.
Am I missing something? Is this planned?
(obviously I can implement this by myself)