`R/mlr_measures_classif_costs.R`

Uses a cost matrix to create a classification measure. The cost matrix is stored as slot "costs". Costs are aggregated with the mean.

`MeasureClassifCosts`

`R6::R6Class()`

inheriting from MeasureClassif.

MeasureClassifCosts$new(costs = NULL, normalize = TRUE)

`costs`

::`matrix()`

Numeric matrix of costs (truth in columns, predicted response in rows).`normalize`

::`logical(1)`

If`TRUE`

, calculate the mean costs instead of the total costs.