scikit-说: Determines the cross-validationinteger, to specify the number of folds in a `(Stratified)KFold`,
- An object to be used as a cross-validation
我看到,在gridsearchcv中,最佳参数是基于cross-validation确定的,但我真正想要做的是根据one held out validation set而不是cross validation我发现了一些类似的帖子,其中定制了cross-validation folds。然而,我真正需要的是在一个集合上进行训练,并在一个验证集上验证参数。