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
)?
Found the answer myself, you can use the ParameterSampler
class from sklearn (see here), it behaves similar to ParameterGrid
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With