Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prophet Model method taking longer time to run when we do model.add_seasonality(name='yearly', period=365.25, fourier_order=20) #2652

Open
Suraj-7077 opened this issue Jan 17, 2025 · 0 comments

Comments

@Suraj-7077
Copy link

Trying to create a forecasting model with having sales data of 26k with parameters as provided.
its taking much longer time to run when we add seasonality name yearly with fourier order =20 and this parameters is the best parameter that are giving me good accuracy with better sales prediction on Holidays and on Sales days.
Note here holidays is data frame of Sales days it has columns like [sales_day_name, ds, lower_window, upper_window. ]

model = Prophet(
           growth='linear',
           holidays=holidays,
           seasonality_mode='multiplicative',
           changepoint_prior_scale=0.05,
           seasonality_prior_scale=35,
           holidays_prior_scale=20,
           interval_width=0.75,
           daily_seasonality=False, # set False bcz not to take auto value since found best value through best_param method(and found fourier order = 12)
           weekly_seasonality=False,  # set False bcz not to take auto value since found best value through best_param method(and found fourier order = 20)
           yearly_seasonality=False,   # set False bcz not to take auto value since found best value through best_param method(and found fourier order = 20)
       ).add_seasonality(name='monthly', period=30.5, fourier_order=12)
       model.add_seasonality(name='weekly', period=7, fourier_order=20)
       model.add_seasonality(name='yearly', period=365.25, fourier_order=20)

And when I remove the yearly seasonality it will runs very fast but that decreases the accuracy of model sales prediction.

How can I reduce the run time without decreasing the Sales prediction accuracy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant