Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Random search vs. GridSearchCV

Tags:

scikit-learn

I want to use random search algorithm instead of grid search with scikit-learn. But I can only find GridSearchCV estimator in documentation. Is it possible to use random search instead of grid search in scikit-learn?

like image 399
Evgeny Lazin Avatar asked Mar 07 '13 11:03

Evgeny Lazin


Video Answer


1 Answers

Random search was added to the dev version 5 days ago, so yes you can, if you're willing to use the bleeding edge version. Otherwise, either wait for the next (0.14) release, or consider using hyperopt.

like image 151
Fred Foo Avatar answered Nov 18 '22 00:11

Fred Foo