Skip to content

Predictions for future n steps #243

Discussion options

You must be logged in to vote

Sure, this is possible, but it has more to do with how you shape your data than how to use ngboost. I'm assuming here that for a single unit of observation i in your dataset you have [yi0, yi1 .... yit ... yit+n] so you are trying to use the values [yi0 ... yit] to predict yit+n for some fixed n. At the moment there isn't a simple way to predict all of [yit+1 ... yit+n] in one shot, so you have to use one model for t+1, another model for t+2, and so on up to t+n (*footnote). So proceeding with some fixed n, what you need to do is shape your data so that you have a matrix X' and a vector Y'. Each row of X' will be X'i = [yi0, yi1 .... yit] and the corresponding element of Y' is Y'i = yit+n…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@alejandroschuler
Comment options

@MikeOMa
Comment options

@Navdeepuniyal
Comment options

@MikeOMa
Comment options

@Navdeepuniyal
Comment options

Answer selected by Navdeepuniyal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants