% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tuning.R
\name{tl_plot_tuning_results}
\alias{tl_plot_tuning_results}
\title{Plot hyperparameter tuning results}
\usage{
tl_plot_tuning_results(
  model,
  top_n = 5,
  param1 = NULL,
  param2 = NULL,
  plot_type = "scatter"
)
}
\arguments{
\item{model}{A tidylearn model object with tuning
results}

\item{top_n}{Number of top parameter sets to
highlight}

\item{param1}{First parameter to plot (for 2D grid
or scatter plots)}

\item{param2}{Second parameter to plot (for 2D grid
or scatter plots)}

\item{plot_type}{Type of plot: "scatter", "grid",
"parallel", "importance"}
}
\value{
A \code{\link[ggplot2]{ggplot}} object.
}
\description{
Plot hyperparameter tuning results
}
\examples{
\donttest{
model <- tl_tune_grid(iris, Species ~ ., method = "tree",
  param_grid = list(cp = c(0.01, 0.1), minsplit = c(10, 20)),
  folds = 2, verbose = FALSE)
tl_plot_tuning_results(model)
}
}
