update.pp_tree: Update a 'pp_tree' model specification.

View source: R/parsnip.R

update.pp_treeR Documentation

Update a pp_tree model specification.

Description

Companion to update.pp_rand_forest — exists for the same reason (tune::tune_grid() relies on update() to finalise the spec at each grid point).

Usage

## S3 method for class 'pp_tree'
update(object, parameters = NULL, penalty = NULL, fresh = FALSE, ...)

Arguments

object

A pp_tree model specification.

parameters

A named list of parameters to update (alternative to passing them as args).

penalty

A new value for the regularisation parameter.

fresh

If TRUE, drop any previously-set arg whose new value is not provided.

...

Engine-specific arguments to update.

Value

An updated pp_tree model specification.


ppforest2 documentation built on July 21, 2026, 9:07 a.m.