Prophet Model method taking longer time to run when we do model.add_seasonality(name='yearly', period=365.25, fourier_order=20)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- data, machine-learning
Research direction
Start by reproducing the provided Prophet configuration with the 26k-row sales dataset and compare runtime with and without model.add_seasonality(name='yearly', period=365.25, fourier_order=20). Measure the effect of the yearly Fourier order alongside the monthly and weekly seasonalities, then define completion as a documented way to reduce runtime without materially reducing prediction accuracy.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- Python
- Stars
- 20.5k
- Forks
- 4.6k
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from facebook/prophet
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Linux x86-64 wheel: overlapping ELF load pages in prophet_model.bin on Linux 4.18 kernelsPossibly taken @nicolasdalsass claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
make_future_dataframe returns 1970 dates when `ds` is an integer columnPossibly taken @k0nnect claimed this 11 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
model_to_json drops the fitted regressor predictor; deserialized model can't predictPossibly taken @caiotheodoro claimed this 11 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
plot_components fails for logistic models with minmax scaling and no floorPossibly taken @RaphaelFakhri claimed this 38 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
All issues in facebook/prophet
Similar issues
-
A JSON chat answer blocks the backend event loop for the whole RAG runPossibly taken @NopeCharon claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
The-OpenROAD-Project/ORAssistant#656 ·
Maintainers usually reply within 1 day
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day