Thank you!
From: Andy [mailto:t3k...@gmail.com]
Sent: Wednesday, February 25, 2015 3:24 PM
To: scikit-learn-general@lists.sourceforge.net
Subject: Re: [Scikit-learn-general] grid search random state
On 02/24/2015 08:26 PM, Pagliari, Roberto wrote:
I have two questions about gridsearchcv
1. Is it possible to fix the random state of the underlying kfold, for
testing purposes?
2. When passing parameters, such as C and gamma for svm, does grid search
go through them in order?
1. Yes. By default, there is no shuffling, so you don't need to do anything for
reproducibility.
You can instantiate a StratifiedKFold object with shuffle=True and fixed random
seed and give that as the cv argument to GridSearchCV if you like.
2. It starts with varying the parameter which is lexically largest, and each
parameter is varied in order of the list you give it.
By default, calling GridSearchCV twice will give you identical results.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general