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