GLMTreeHyperparameters
VariantModel-Based Recursive Partitioning: a tree with a GLM in each leaf. See `setup_GLMTree`.
Properties
regressorsarray | null≥ 1 itemsFeatures entering the linear model in each leaf. NULL uses every feature; an empty model is not expressible here, since a tree of intercepts is a decision tree and CART fits one. Values must name training features.
partitioning_variablesarray | null≥ 1 itemsFeatures the tree may split on. NULL uses every feature. Values must name training features.
alphanumber | object≤ 1> 0Significance level a parameter-instability test must reach before a node is split. The one setting that governs tree size.
bonferronibooleanBonferroni-adjust the test p-values for the number of partitioning variables.
minsizeinteger | object | null≥ 1Fewest cases a node may hold. NULL uses ten times the number of parameters in a leaf's model, which scales with the number of regressors and can forbid splitting entirely on a wide design. Cannot exceed the number of cases in the training data.
maxdepthinteger | object | null≥ 1Deepest the tree may grow. NULL is unlimited.
mtryinteger | object | null≥ 1Partitioning variables sampled at each node. NULL tests every one. Cannot exceed the number of features in the training data.
trimnumber | object≥ 0Trimming for the split-point search: a fraction of cases below 1, a count at or above it.
breaktiesbooleanBreak ties in numeric partitioning variables by adding noise.
prunestring | object | nullPost-prune the grown tree by an information criterion. NULL keeps every split the tests admitted.
one of
"AIC""BIC"restartbooleanRestart each leaf's model from scratch rather than from its parent's fit.
dfsplitbooleanCount each split against the degrees of freedom when pruning.
numsplitstring | objectWhere a numeric split is placed: at the last value of the left branch, or midway between it and the next.
one of
"left""center"catsplitstring | objectHow a categorical variable is split: into two groups of levels, or one branch per level.
one of
"binary""multiway"ordinalstring | objectTest statistic for an ordered partitioning variable.
one of
"chisq""max""L2"vcovstringCovariance estimator the instability test is built on.
one of
"opg""info""sandwich"nrepinteger≥ 1Simulation replicates for the p-value of an ordinal split statistic.
ifwboolean | objectInverse Frequency Weighting in classification.
Relationships
Used by