Skip to content

Instantly share code, notes, and snippets.

@saimadhu-polamuri
Created October 17, 2023 02:34
Show Gist options
  • Save saimadhu-polamuri/3b4730f62335293046ad6aa4b7997727 to your computer and use it in GitHub Desktop.
Save saimadhu-polamuri/3b4730f62335293046ad6aa4b7997727 to your computer and use it in GitHub Desktop.
from statsmodels.tsa.holtwinters import ExponentialSmoothing
# Define the parameters for the exponential smoothing model
trend = 'additive'
seasonal = 'additive'
# Fit the exponential smoothing model
model = ExponentialSmoothing(data, trend=trend, seasonal=seasonal)
results = model.fit()
# Print the model summary
print(results.summary())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment