statsmodels.tsa.holtwinters.ExponentialSmoothing.fix_paramsΒΆ

ExponentialSmoothing.fix_params(values)[source]ΒΆ

Temporarily fix parameters for estimation.

Parameters
valuesdict

Values to fix. The key is the parameter name and the value is the fixed value.

Yields
None

No value returned.

Examples

>>> from statsmodels.datasets.macrodata import load_pandas
>>> data = load_pandas()
>>> import statsmodels.tsa.api as tsa
>>> mod = tsa.ExponentialSmoothing(data.data.realcons, trend="add",
...                                initialization_method="estimated")
>>> with mod.fix_params({"smoothing_level": 0.2}):
...     mod.fit()