I recently tested many hyperparameter combinations using sklearn.model_selection.GridSearchCV
. I want to know if there is a way to call all previous estimators that were trained in the process.
search = GridSearchCV(estimator=my_estimator, param_grid=parameters)
# `my_estimator` is a gradient boosting classifier object
# `parameters` is a dictionary containing all the hyperparameters I want to try
I know I can call the best estimator with search.best_estimator_
, but I would like to call all other estimators as well so I can test their individual performance.
The search took around 35 hours to complete, so I really hope I do not have to do this all over again.
NOTE: This was asked a few years ago (here), but sklearn
has been updated multiple times since and the anwer may be different now (I hope).