Implementing Custom GridSearchCV and RandomSearchCV without scikit-learn
Grid Search can be thought of as an exhaustive search for selecting a model. In Grid Search, the data scientist sets up a grid of hyperparameter values and for each combination, trains a model and scores on the testing data. In this approach, every combination of hyperparameter values is tried which can be very inefficient. For example, searching 20 different parameter values for each of 4 parameters will require 160,000 trials of cross-validation. This equates to 1,600,000 model fits and 1,600,000 predictions if 10-fold cross validation is used.
hyperparameter, implementing custom gridsearchcv and randomsearchcv, randomizedsearchcv, (7 more...)
Jul-13-2021, 18:35:18 GMT
- Technology: