Random search without cross validation in python/sklearn

4.1k views Asked by At

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)?

1

There are 1 answers

0
jrieke On

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