confusion_plot: Confusion matrix plot

Description Usage Arguments

View source: R/fdaAuxFunctions.R

Description

Plots the confusion matrix.

Usage

1
2
3
4
confusion_plot(d, fam, avgError, binom_labels = c(y0 =
  "observed class: 0", y1 = "observed class: 1", yhat0 =
  "predicted class: 0", yhat1 = "predicted class: 1"),
  multinom_labels = NULL)

Arguments

d

Confusion matrix.

fam

Model family.

avgError

Average test error.

binom_labels

Labels for the confusion matrix in the case of binomial Classification.

multinom_labels

Labels for the confusion matrix in the case of multinomial Classification. Set to the column names of d if no value is provided.


pmesperanca/mlevcm documentation built on March 17, 2021, 10:03 p.m.