Uses a cost matrix to create a classification measure.
The cost matrix is stored as slot "costs".
Costs are aggregated with the mean.
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.