Produces a styled gt confusion matrix with correct predictions highlighted. Only available for classification models.
Value
A gt table object, with a row and a column for
each class the model was trained on. Rows of a class the model never
saw are left out, with a warning.
Examples
# \donttest{
model <- tl_model(iris, Species ~ ., method = "forest")
tl_table_confusion(model)
Confusion Matrix
setosa
versicolor
virginica
tidylearn | forest (classification) | Species ~ . | n = 150
# }
