Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Random search without cross validation in python/sklearn

If you want to do grid search in sklearn without cross validation (what GridSearchCV does), you can apparently use the ParameterGrid class (see here: Is there easy way to grid search without cross validation in python?). Does anyone know of a similar method to do random search without CV (i.e. the equivalent of RandomizedSearchCV)?

like image 797
jrieke Avatar asked Jan 06 '17 23:01

jrieke


1 Answers

Found the answer myself, you can use the ParameterSampler class from sklearn (see here), it behaves similar to ParameterGrid.

like image 126
jrieke Avatar answered Sep 27 '22 21:09

jrieke