2014-07-23 18:07 GMT+02:00 Michael Eickenberg <[email protected]>: > To answer 1): yes, if you set cv=number, then it will do K-fold > cross-validation with that number of folds. You can do this explicitly by > using > > from sklearn.cross_validation import KFold > > cv = KFold(len(data), 6) > > and pass cv as an argument to GridSearchCV.
Actually StratifiedKFold is used if the input estimator is a classifier. ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
