prophet icon indicating copy to clipboard operation
prophet copied to clipboard

QUESTION: Can someone explain utility of columns from model.predict() result?

Open RamiroGhilino opened this issue 2 years ago • 2 comments

I'm working with prophet and i want to store in my DB the result of prediction some data, i just want to know if all the columns in the dataframe that returns from model.predict() have any particular use case or i can drop them. If someone could point any article or documentation where i can find the description of every column that would be great.

RamiroGhilino avatar Oct 10 '23 12:10 RamiroGhilino

Hello, the choice depends on your analysis needs, but in essence:

ds: This column depicts the dates for which you intend to make predictions. yhat: In this column, you'll find the forecasted values for the target variable. yhat_lower and yhat_upper: These columns furnish the lower and upper limits of the predicted values. Other columns house residuals, seasonal components, and additional data.

If your primary objective is displaying the predicted values alone, focusing on yhat should suffice.

AlexandroLuis avatar Oct 10 '23 19:10 AlexandroLuis

Thanks for the swift reply, but i was looking for the explanation of these "other columns", mainly "additive_terms" and "multiplicative_terms". I would also like to know if trends columns can be achived whit a SQL Sentence (something like a group by days for weekly trend or something like that). Thanks once again :)

RamiroGhilino avatar Oct 10 '23 20:10 RamiroGhilino