View source: R/stop-strategy.R
| stop_max_depth | R Documentation |
Creates a stopping rule that stops splitting when a node's depth reaches
max_depth. Depth is zero-based at the root, so max_depth(k)
allows at most k + 1 levels. Mode-agnostic: useful for bounding
tree complexity in both classification and regression trees.
stop_max_depth(max_depth)
max_depth |
Maximum depth (non-negative integer; 0 produces a root-only stump). |
A stop_strategy object.
stop_min_size, stop_any
stop_max_depth(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.