statsmodels.tsa.holtwinters.SimpleExpSmoothing.fix_params¶
- SimpleExpSmoothing.fix_params(values)¶
Temporarily fix parameters for estimation.
- Parameters:
- values
dict
Values to fix. The key is the parameter name and the value is the fixed value.
- values
- 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()