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
)?
Random search without cross validation in python/sklearn
4.1k views Asked by jrieke At
1
Found the answer myself, you can use the
ParameterSampler
class from sklearn (see here), it behaves similar toParameterGrid
.