View source: R/fdaAuxFunctions.R
Plots the confusion matrix.
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)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.