How-to guides
Predicting a subset of ids
Compute predictions for only a subset of the training ids
unique_id | ds | lgb | |
---|---|---|---|
0 | id_0 | 2000-08-10 | 3.728396 |
1 | id_1 | 2000-04-07 | 4.749133 |
2 | id_2 | 2000-06-16 | 4.749133 |
3 | id_3 | 2000-08-30 | 2.758949 |
4 | id_4 | 2001-01-08 | 3.331394 |
By default all series seen during training will be forecasted with the
predict method. If you’re only interested in predicting a couple of them
you can use the ids
argument.
unique_id | ds | lgb | |
---|---|---|---|
0 | id_0 | 2000-08-10 | 3.728396 |
1 | id_4 | 2001-01-08 | 3.331394 |
Note that the ids must’ve been seen during training, if you try to predict an id that wasn’t there you’ll get an error.