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: mlr3measures #> * Range: [0, 1] #> * Minimize: TRUE #> * Properties: - #> * Predict type: response #>
default_measures("regr")
#> $regr.mse #> <MeasureRegrSimple:regr.mse> #> * Packages: mlr3measures #> * Range: [0, Inf] #> * Minimize: TRUE #> * Properties: - #> * Predict type: response #>