pangeo_fish.hmm.optimize.scipy.GridSearch

pangeo_fish.hmm.optimize.scipy.GridSearch#

class pangeo_fish.hmm.optimize.scipy.GridSearch(estimator, search_grid)#

Optimize estimator parameters using a search grid

Parameters:
  • estimator (Estimator) – The estimator object. Has to have the set_params(**params) -> Estimator and score(data) -> float methods. Only a single parameter is supported at the moment.

  • search_grid (mapping of str to sequence) – The search grid.

__init__(estimator, search_grid)#

Methods

__init__(estimator, search_grid)

fit(X)

search for optimal parameters