Created
October 17, 2023 02:34
-
-
Save saimadhu-polamuri/3b4730f62335293046ad6aa4b7997727 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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