create_task | R Documentation |
Function that given a dataframe and variable creates an mlr3 task
create_task( df, target_var, type = NULL, rm_na_target = TRUE, task_name = "task" )
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 |
returns a mlr3 task object
create_task(iris, "Species") create_task(mtcars, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.