This task specializes Task and TaskSupervised for forecasting regression problems.
The target column(s) are assumed to be numeric.
The task_type
is set to "regr"
`.
Chapter in the mlr3book: https://mlr3book.mlr-org.com/basics.html#tasks
Package mlr3data for more toy tasks.
Package mlr3oml for downloading tasks from https://www.openml.org.
Package mlr3viz for some generic visualizations.
Dictionary of Tasks: mlr_tasks
as.data.table(mlr_tasks)
for a table of available Tasks in the running session (depending on the loaded packages).
mlr3fselect and mlr3filters for feature selection and feature filtering.
Extension packages for additional task types:
Unsupervised clustering: mlr3cluster
Probabilistic supervised regression and survival analysis: https://mlr3proba.mlr-org.com/.
Other Task:
TaskForecast
,
mlr_tasks_airpassengers
,
mlr_tasks_petrol
mlr3::Task
-> mlr3::TaskSupervised
-> mlr3temporal::TaskForecast
-> TaskRegrForecast
Inherited methods
mlr3::Task$add_strata()
mlr3::Task$cbind()
mlr3::Task$droplevels()
mlr3::Task$filter()
mlr3::Task$format()
mlr3::Task$formula()
mlr3::Task$head()
mlr3::Task$help()
mlr3::Task$levels()
mlr3::Task$missings()
mlr3::Task$print()
mlr3::Task$rbind()
mlr3::Task$rename()
mlr3::Task$select()
mlr3::Task$set_col_roles()
mlr3::Task$set_levels()
mlr3::Task$set_row_roles()
mlr3temporal::TaskForecast$data()
mlr3temporal::TaskForecast$date()
mlr3temporal::TaskForecast$truth()
new()
Creates a new instance of this R6 class.
TaskRegrForecast$new(id, backend, target = "target", date_col = NULL)
id
(character(1)
)
Identifier for the new instance.
backend
(DataBackend)
Either a DataBackend, or any object which is convertible to a DataBackend with as_data_backend()
.
E.g., a data.frame()
will be converted to a DataBackendDataTable.
target
(character(1)
)
Name of the target column.
date_col
(character(1)
)
Name of the date column, only required if backend is a data.frame
.