% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tables.R
\name{tl_table_confusion}
\alias{tl_table_confusion}
\title{Formatted confusion matrix table}
\usage{
tl_table_confusion(model, new_data = NULL, ...)
}
\arguments{
\item{model}{A tidylearn classification model}

\item{new_data}{Optional test data. If NULL, uses training data.}

\item{...}{Additional arguments (currently unused)}
}
\value{
A \code{\link[gt]{gt}} table object.
}
\description{
Produces a styled gt confusion matrix with correct predictions highlighted.
Only available for classification models.
}
\examples{
\donttest{
model <- tl_model(iris, Species ~ ., method = "forest")
tl_table_confusion(model)
}
}
