model_selection

Module Contents

Functions

filter_tried_params(→ List[dict])

Filters out previously tried parameters for a scikit-learn gridsearch if the model otherwise is identically the same.

model_selection.filter_tried_params(gridsearchcv: sklearn.model_selection.GridSearchCV, tried_gridsearches: List[sklearn.model_selection.GridSearchCV]) List[dict]

Filters out previously tried parameters for a scikit-learn gridsearch if the model otherwise is identically the same.

Parameters
  • gridsearchcv (GridSearchCV) – The gridsearch model you want to run.

  • tried_gridsearches (List[GridSearchCV]) – The previous gridsearch models you’ve already run.

Returns

A parameter grid without previously tried parameters.

Return type

List[dict]

Examples

Click here.