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

forecasting growth example dataset looking very different from documentation #2549

Open
ChristelSwift opened this issue Feb 9, 2024 · 1 comment

Comments

@ChristelSwift
Copy link

in the Prophet documentation there's an example on forecasting growth using a cap value, linking to the example_wp_log_peyton_manning.csv dataset:
https://facebook.github.io/prophet/docs/saturating_forecasts.html#forecasting-growth

When I run this example, I get a very different time series..

This is what is in the online documentation:

df <- read.csv('https://raw.githubusercontent.com/facebook/prophet/main/examples/example_wp_log_peyton_manning.csv')
df$cap <- 8.5
m <- prophet(df, growth = 'logistic')
future <- make_future_dataframe(m, periods = 1826)
future$cap <- 8.5
fcst <- predict(m, future)
plot(m, fcst)
image

and this is what i get when i run that exact same code:

image

Has there been a change in the dataset on github since the document was rendered?

@ChristelSwift
Copy link
Author

UPDATE: i think the link in the documentation is wrong. It should link to this dataset instead: example_wp_log_R.csv

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

1 participant