Usage
as_measure(x, task_type = NULL, clone = FALSE, ...)
# S3 method for class '`NULL`'
as_measure(x, task_type = NULL, clone = FALSE, ...)
# S3 method for class 'Measure'
as_measure(x, task_type = NULL, clone = FALSE, ...)
as_measures(x, task_type = NULL, clone = FALSE, ...)
# Default S3 method
as_measures(x, task_type = NULL, clone = FALSE, ...)
# S3 method for class '`NULL`'
as_measures(x, task_type = NULL, clone = FALSE, ...)
# S3 method for class 'list'
as_measures(x, task_type = NULL, clone = FALSE, ...)Arguments
- x
(any)
Object to convert.- task_type
(
character(1))
Used ifxisNULLto construct a default measure for the respective task type. The default measures are stored inmlr_reflections$default_measures.- clone
(
logical(1))
IfTRUE, ensures that the returned object is not the same as the inputx.- ...
(any)
Additional arguments.