Forecaster
Forecaster.Rd
Forecaster
Forecaster
Super class
mlr3::Learner
-> Forecaster
Public fields
learner
(Learner)
The learnerlag
(
integer(1)
)
The lag
Methods
Method predict()
Uses the information stored during $train()
in $state
to create a new Prediction
for a set of observations of the provided task
.
Arguments
task
(Task).
row_ids
(
integer()
)
Vector of test indices as subset oftask$row_ids
. For a simple split into training and test set, seepartition()
.
Method predict_newdata()
Uses the model fitted during $train()
to create a new Prediction based on the forecast horizon n
.
Arguments
newdata
(any object supported by
as_data_backend()
)
New data to predict on. All data formats convertible byas_data_backend()
are supported, e.g.data.frame()
or DataBackend. If a DataBackend is provided asnewdata
, the row ids are preserved, otherwise they are set to to the sequence1:nrow(newdata)
.task
(Task).
n
(
integer(1)
).