[scikit-learn] How GridSearchCV to get best_params?

Sebastian Raschka mail at sebastianraschka.com
Thu Jan 3 22:50:16 EST 2019


I think it refers to the test folds via the k-fold cross-validation that is internally used via the `cv` parameter of GridSearchCV (or the test folds of an alternative cross validation scheme that you may pass as an iterator to cv)

Best,
Sebastian

> On Jan 3, 2019, at 9:44 PM, lampahome <pahome.chen at mirlab.org> wrote:
> 
> as title
> 
> In the doc it says:
> 
> best_params_ : dict
> Parameter setting that gave the best results on the hold out data.
> 
> My question is what is the hold out data?
> It's score of train data or test data, or mean of train and test score?
> 
> thx
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn



More information about the scikit-learn mailing list