Visualizing the confusion matrix for a classification model
Source:R/two_class_diag_plots.R
plot_twoclass_conf_mat.Rd
This function plots the confusion matrix for a classification model.
Arguments
- dat
The predictions data frame in the
organize_data()
result. Following variables are required:.outcome
,.pred
,.color
, and.hover
.
Value
A plotly::ggplotly()
object.