'How to add hourly seasonality in facebook prophet in python
could you, please, help me: I don't know how to add hourly seasonality in Facebook Prophet in Python. I tried the following:
m = Prophet(
weekly_seasonality = True,
yearly_seasonality = True,
daily_seasonality = True
)
m.fit(train_df)
future = m.make_future_dataframe(periods=24, freq = 'H')
forecast = m.predict(future)
But it didn't help me. The results were strange. Maybe you know the solution how to add both daily, weekly etc and hourly seasonality?
Solution 1:[1]
Just check a docs. So basically you need to create a custom seasonality with a proper period. E.g. if you have a step 1 day your hourly seasonality will be with period 1/24
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Sergey Pryvala |