Convert object to a Measure or a list of Measure.
as_measure(x, task_type = NULL, clone = FALSE, ...)# S3 method for `NULL`
as_measure(x, task_type = NULL, clone = FALSE, ...)
# S3 method for Measure
as_measure(x, task_type = NULL, clone = FALSE, ...)
as_measures(x, task_type = NULL, clone = FALSE, ...)
# S3 method for default
as_measures(x, task_type = NULL, clone = FALSE, ...)
# S3 method for `NULL`
as_measures(x, task_type = NULL, clone = FALSE, ...)
# S3 method for list
as_measures(x, task_type = NULL, clone = FALSE, ...)
Measure.
(any)
Object to convert.
(character(1))
Used if x is NULL to construct a default measure for the respective task type.
The default measures are stored in mlr_reflections$default_measures.
(logical(1))
If TRUE, ensures that the returned object is not the same as the input x.
(any)
Additional arguments.