Re: [scikit-learn] Control over the inner loop in GridSearchCV

2017-02-27 Thread Sebastian Raschka
to unpack" error. On the other > end, when we try to pass the nested -ith cv fold as cv argument for clf, and > we call fit on the same cv_nested fold, we get an "Index out of bound" error. > > Two questions: > > 1) Is there any workaround to avoid the split when clf is called

Re: [scikit-learn] Control over the inner loop in GridSearchCV

2017-02-27 Thread Sebastian Raschka
Hi, Ludovico, what format (shape) is data in? Are these the arrays from a Kfold iterator? In this case, the “question marks” in your code snippet should simply be the train and validation subset indices generated by the KFold generator. E.g., skfold = StratifiedKFold(y=y_train, n_folds=5, shuf