Gets the default measures using the information in mlr_reflections$default_measures:

  • "classif.ce" for classification ("classif").

  • "regr.mse" for regression ("regr").

  • Add-on package may register additional default measures for their own task types.

default_measures(task_type)

Arguments

task_type

(character(1))
Get the default measure for the task type task_type, e.g., "classif" or "regr". If task_type is NULL, an empty list is returned.

Value

list of Measure.

Examples

default_measures("classif")
#> $classif.ce
#> <MeasureClassifSimple:classif.ce>
#> * Packages: mlr3, mlr3measures
#> * Range: [0, 1]
#> * Minimize: TRUE
#> * Average: macro
#> * Parameters: list()
#> * Properties: -
#> * Predict type: response
#> 
default_measures("regr")
#> $regr.mse
#> <MeasureRegrSimple:regr.mse>
#> * Packages: mlr3, mlr3measures
#> * Range: [0, Inf]
#> * Minimize: TRUE
#> * Average: macro
#> * Parameters: list()
#> * Properties: -
#> * Predict type: response
#>