default_measures: Get the Default Measure

View source: R/default_measures.R

default_measuresR Documentation

Get the Default Measure

Description

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.

Usage

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")
default_measures("regr")

mlr3 documentation built on Oct. 18, 2024, 5:11 p.m.