A data scientist trains a random forest model using PROC HPFOREST in SAS and wants to limit the maximum number of leaf nodes in each tree to control overfitting. Which option accomplishes this?
Select an answer to reveal the explanation.
Short Explanation
Here's the deal — you use MAXDEPTH= because it caps the number of levels in each tree, which limits leaf nodes and keeps the forest from overfitting. The other settings don't cap tree depth, so they don't control the maximum number of leaf nodes the way MAXDEPTH= does.
Full Explanation
The MAXDEPTH= option is correct because, in PROC HPFOREST, it limits the maximum number of levels, or depth, in each tree. That directly controls the number of leaf nodes and prevents overfitting by constraining tree complexity. The MAXTREES= option is wrong because it controls the number of trees in the forest, not the depth or maximum leaf-node count of each individual tree. The MINLEAF= option is wrong because it sets the minimum number of observations required in a leaf, which is a different regularization mechanism and does not cap the maximum number of leaf nodes. The VARS_TO_TRY= option is wrong because it controls the number of candidate variables considered at each split, affecting tree diversity rather than tree depth or leaf-node limits.