question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prophet return every prediction value

See original GitHub issue

Is your feature request related to a current problem? Please describe. In order to create an outlier detection with Prophet, i need the full dataframe that’s return Prophet

Describe proposed solution Remove the hardcoded ["yhat"] from Prophet.predict add a variable asking to return just yhat or all the predictions: 'yhat_lower', 'yhat_upper', etc.. https://unit8co.github.io/darts/_modules/darts/models/prophet.html#Prophet.predict

Thanks very much! very useful framework

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dennisbadercommented, Sep 30, 2021

Hi @fawolfmann and @enesgur, prediction and returning of the base model output will be supported after merging #495 .

You can predict and return the raw output with model.predict_raw(n=len(test)). Note that this will return a pd.DataFrame pred_df which will not be supported for further processing with the Darts API. You can then access Prophet’s methods like plot_components() with model.model.plot_compenents(pred_df)

1reaction
LeoTafticommented, Oct 27, 2020

Hi @fawolfmann,

Thanks for reporting.

I think that the solution you propose could indeed be a nice small tweak to the predict() method of Prophet. It would be nice to keep the current behavior as default though, so maybe adding something like simple_prediction:bool = True to the Prophet.predict() method could do the trick.

I’ll add this to our backlog. In the meantime if you have a little time, feel free to contribute!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diagnostics | Prophet - Meta Open Source
Here we do cross-validation to assess prediction performance on a horizon of 365 days, starting with 730 days of training data in the...
Read more >
Forecast Model Tuning with Additional Regressors in Prophet
Regressor value must be known in the past and in the future , this is how it helps Prophet to adjust the forecast....
Read more >
Time Series Forecasting With Prophet in Python
Prophet is an open-source library developed by Facebook and designed for automatic forecasting of univariate time series data. · How to fit ...
Read more >
Forecasting in R with Prophet | Reports - Mode Analytics
Once you have used Prophet to fit the model using the Box-Cox transformed dataset, you can now start making predictions for future dates....
Read more >
facebook prophet predict value at fixed date in the future
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found