How to add hourly seasonality in facebook prophet in python

Viewed 492

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?

1 Answers

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

Related