% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/parsnip.R
\name{update.pp_rand_forest}
\alias{update.pp_rand_forest}
\title{Update a \code{pp_rand_forest} model specification.}
\usage{
\method{update}{pp_rand_forest}(
  object,
  parameters = NULL,
  trees = NULL,
  mtry = NULL,
  mtry_prop = NULL,
  penalty = NULL,
  fresh = FALSE,
  ...
)
}
\arguments{
\item{object}{A \code{pp_rand_forest} model specification.}

\item{parameters}{A named list of parameters to update (alternative to passing them as args).}

\item{trees, mtry, mtry_prop, penalty}{New values for the corresponding parameters.}

\item{fresh}{If \code{TRUE}, drop any previously-set arg whose new value is not provided.}

\item{...}{Engine-specific arguments to update.}
}
\value{
An updated \code{pp_rand_forest} model specification.
}
\description{
Implements parsnip's \code{update} protocol so that \code{tune::tune_grid()}
(and any other caller that finalises a spec via \code{update()}) can fill
in the tuned values for \code{trees}, \code{mtry}, and \code{penalty}.
Without this method, \code{update()} falls back to \code{stats::update.default}
and fails with "need an object with call component".
}
