Param Estimator
FixedParams
Dummy parameter estimator that writes fixed values to self.
This can be used as a dummy/mock, or as a pipeline element, e.g., to set parameters to certain values, or in model selection as the “fixed” option.
Takes a dictionary param_dict of name/value pairs to write to self in fit. In fit, for each key-value pair in param_dict, writes value to attribute str(key) + "_" in self
Schnellstart
python
from sktime.param_est.fixed import FixedParams
estimator = FixedParams(param_dict)Parameter(1)
- param_dictdict
fixed parameter values written to
self
Beispiele
>>> import pandas as pd
>>> from sktime.param_est.fixed import FixedParams
>>> X = pd. Series ([1, 2, 3 ])
>>> estimator = FixedParams ({ "alpha": 0.5 })
>>> _ = estimator. fit (X)
>>> estimator. get_fitted_params () {'alpha': 0.5}