Convert to a Classification Task
Convert object to a TaskClassif. This is a S3 generic, specialized for at least the following objects:
TaskClassif: ensure the identity
data.frame()
and DataBackend: provides an alternative to the constructor of TaskClassif.
TaskRegr: Calls convert_task()
.
as_task_classif(x, ...) ## S3 method for class 'TaskClassif' as_task_classif(x, clone = FALSE, ...) ## S3 method for class 'data.frame' as_task_classif( x, target = NULL, id = deparse(substitute(x)), positive = NULL, ... ) ## S3 method for class 'DataBackend' as_task_classif( x, target = NULL, id = deparse(substitute(x)), positive = NULL, ... ) ## S3 method for class 'TaskRegr' as_task_classif( x, target = NULL, drop_original_target = FALSE, drop_levels = TRUE, ... )
x |
( |
... |
( |
clone |
( |
target |
( |
id |
( |
positive |
( |
drop_original_target |
( |
drop_levels |
( |
as_task_classif(palmerpenguins::penguins, target = "species")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.