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. |
Replies: 1 comment 3 replies
|
Hi @saksonita , thanks for opening a new discussion. |
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_lagsNaN values at the beginning of the yhat columns, as no prediction can be made with less than the specifiedn_lagsdatapoints taken as an input. Yourforecast_futuredataframe 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