create_tasks: Create tasks

Description Usage Arguments Details Value

Description

Create machine learning Task list for random forest models.

Usage

1
2
3
4
5
6
create_tasks(
  in_gaugestats,
  in_predvars,
  id_suffix = NULL,
  include_discharge = TRUE
)

Arguments

in_gaugestats

data.table of formatted gauging station summary statistics and hydro-environmental attributes. Output from format_gaugestats.

in_predvars

data.table of candidate predictor variable codes and names. Output from selectformat_predvars.

id_suffix

(character) suffix to add after task names

include_discharge

(logical) whether to include predictor variables of long-term discharge modeled from WaterGAP v2.2.

Details

Tasks are objects that contain the (usually tabular) data and additional meta-data to define a machine learning problem. The meta-data is, for example, the name of the target variable for supervised machine learning problems, or the type of the dataset (e.g. a spatial or survival). This information is used for specific operations that can be performed on a task. For more info on tasks, see https://mlr3book.mlr-org.com/tasks.html.

Value

list of three Task:


NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.