You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adding conditional_seasonlity in the code, I am getting error that " TypeError: add_seasonality() got an unexpected keyword argument 'condition_name'. can you please help. thanks
The text was updated successfully, but these errors were encountered:
https://neuralprophet.com/how-to-guides/feature-guides/conditional_seasonality_peyton.html
df["ds"] = pd.to_datetime(df["ds"])
df["on_season"] = df["ds"].apply(lambda x: x.month in [9, 10, 11, 12, 1])
df["off_season"] = df["ds"].apply(lambda x: x.month not in [9, 10, 11, 12, 1])
m = NeuralProphet(weekly_seasonality=False)
m.set_plotting_backend("plotly-static")
m.add_seasonality(name="on_season", period=7, fourier_order=3, condition_name="on_season")
m.add_seasonality(name="off_season", period=7, fourier_order=3, condition_name="off_season")
metrics = m.fit(df, freq="D")
adding conditional_seasonlity in the code, I am getting error that " TypeError: add_seasonality() got an unexpected keyword argument 'condition_name'. can you please help. thanks
The text was updated successfully, but these errors were encountered: