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

An error of predict at prophet #2325

Open
HadyShaaban opened this issue Dec 28, 2022 · 2 comments
Open

An error of predict at prophet #2325

HadyShaaban opened this issue Dec 28, 2022 · 2 comments

Comments

@HadyShaaban
Copy link

Hi team,
Hope that you are doing great. i'm facing a challenge in predict of prophet package.
steps that i followed

m.add_regressor('sessions')
m.add_regressor('add_to_cart')
m.add_regressor('begin_checkout')
m.add_regressor('plp')
m.add_regressor('select_item')
m.add_regressor('search')
m.add_regressor('delivery_continue')

m.fit(train)

m.params

future = m.make_future_dataframe(periods=118)
future.head()

image

then i added the regressors

future['sessions'] = df1_final['sessions']
future['add_to_cart'] = df1_final['add_to_cart']
future['begin_checkout'] = df1_final['begin_checkout']
future['plp'] = df1_final['plp']
future['select_item'] = df1_final['select_item']
future['search'] = df1_final['search']
future['delivery_continue'] = df1_final['delivery_continue']

image

forecast = m.predict(future)
forecast[['ds','yhat','yhat_lower','yhat_upper']].tail()

and this was the output i'm facing. searched a lot but with no resolution.

image

@tcuongd
Copy link
Collaborator

tcuongd commented Jan 31, 2023

We had a similar issue with plotting that was resolved by upgrading to the latest versions of numpy and pandas, could you try that first?

@eliegan
Copy link

eliegan commented Aug 7, 2023

Still having this error running on Google Collab and having all Pandas/Numpy to the latest version.
What are you suggesting ?

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

3 participants