% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pipeline.R
\name{tl_run_pipeline}
\alias{tl_run_pipeline}
\title{Run a tidylearn pipeline}
\usage{
tl_run_pipeline(pipeline, verbose = TRUE)
}
\arguments{
\item{pipeline}{A tidylearn pipeline object}

\item{verbose}{Logical; whether to print progress}
}
\value{
The input \code{tidylearn_pipeline} object with its
\code{$results} component populated. Results include
\code{$processed_data}, \code{$model_results} (a named list of
per-model fits and metrics), \code{$best_model_name},
\code{$best_model} (the winning \code{tidylearn_model}), and
\code{$metric_values}.
}
\description{
Run a tidylearn pipeline
}
\examples{
\donttest{
pipe <- tl_pipeline(iris, Species ~ .,
  models = list(tree = list(method = "tree")),
  evaluation = list(metrics = "accuracy", validation = "cv",
    cv_folds = 2, best_metric = "accuracy"))
pipe <- tl_run_pipeline(pipe, verbose = FALSE)
}
}
