pangeo_fish.hmm.optimize.scipy.TargetBoundsSearch

pangeo_fish.hmm.optimize.scipy.TargetBoundsSearch#

class pangeo_fish.hmm.optimize.scipy.TargetBoundsSearch(estimator, x0, param_bounds, *, optimizer_kwargs={})#

Optimize estimator parameters within an interval

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.

  • param_bounds (sequence of float) – A sequence containing lower and upper bounds for the parameter.

  • optimizer_kwargs (mapping, optional) – Additional parameters for the optimizer

__init__(estimator, x0, param_bounds, *, optimizer_kwargs={})#

Methods

__init__(estimator, x0, param_bounds, *[, ...])

fit(X)

Optimize the score of the estimator