This is an adaptation of the print.confusionMatrix method by the "caret" package with some of the descriptions adapted for the more common usage in Earth Observation.
.print_confusion_matrix(x, mode = "sens_spec", digits = max(3,
getOption("digits") - 3), ...)
An object of class confusionMatrix
.
A single character string either "sens_spec", "prec_recall", or "everything".
Mumber of significant digits when printed.
Optional arguments to pass to print.table
.
x
is invisibly returned.