Creates a cost measure for non-standard classification error costs.
makeCostMeasure(id = "costs", minimize = TRUE, costs, combine = mean,
best = NULL, worst = NULL, name = id, note = "")
Name of measure.
Default is “costs”.
Should the measure be minimized?
Otherwise you are effectively specifying a benefits matrix.
Matrix of misclassification costs. Rows and columns have to be named with class labels, order does not matter.
Rows indicate true classes, columns predicted classes.
How to combine costs over all cases for a SINGLE test set?
Note this is not the same as the
aggregate argument in makeMeasure
You can set this as well via setAggregation, as for any measure.
Default is mean.
Best obtainable value for measure.
Default is -`Inf` or `Inf`, depending on `minimize`.
Worst obtainable value for measure.
Default is `Inf` or -`Inf`, depending on `minimize`.
Name of the measure. Default is `id`.
Description and additional notes for the measure. Default is “”.