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()

Last update: Dec 16, 2024