How to get the predict values from many yhats #1150
-
future = m.make_future_dataframe(data, periods=317) by writing the above code, I've got many yhats (i=365). The plot looks fine, but how can I get those values from the plot? I tried yhat1 but there were many NaN values same as the rest. I am looking forward to your response. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @saksonita , thanks for opening a new discussion. |
Beta Was this translation helpful? Give feedback.
Hi @saksonita , thanks for opening a new discussion.
You probably used auto regression
n_lags>0
. In that case, it's perfectly normal to haven_lags
NaN values at the beginning of the yhat columns, as no prediction can be made with less than the specifiedn_lags
datapoints taken as an input. Yourforecast_future
dataframe contains the predictions you plotted.Hope this helps. If not, feel free to post a reproducible code section, so that I can have a closer look.
Best
Julio