facebook / facebook/prophet

An error of predict at prophet

Open
#2,325 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

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](https://user-images.githubusercontent.com/31658534/209818945-d9be1415-9e93-4553-a279-ec48cb15d3ea.png)

## 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](https://user-images.githubusercontent.com/31658534/209819018-0a78d72d-d71c-417d-93ba-d607b4090fd7.png)

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](https://user-images.githubusercontent.com/31658534/209819162-8fab0be4-7c37-45fb-a1a7-1d1988ad72f3.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.