create_task: Function that given a dataframe and variable creates an mlr3...

View source: R/create_task.R

create_taskR Documentation

Function that given a dataframe and variable creates an mlr3 task

Description

Function that given a dataframe and variable creates an mlr3 task

Usage

create_task(
  df,
  target_var,
  type = NULL,
  rm_na_target = TRUE,
  task_name = "task"
)

Arguments

df

input data frame

target_var

target variable

type

type of task. ´regr´ or ´classif´. if ´NULL´ the type is estimated.

rm_na_target

remove NAs from target column?

task_name

task name

Value

returns a mlr3 task object

Examples

create_task(iris, "Species")
create_task(mtcars, 1)


el-mrt/auto-statistics documentation built on March 19, 2022, 1:57 p.m.