11

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

Community
  • 1
  • 1
jrieke
  • 975
  • 10
  • 15

1 Answers1

11

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

jrieke
  • 975
  • 10
  • 15