s_LIHAD | R Documentation |
Train a Linear Hard Hybrid Tree for Regression
s_LIHAD(
x,
y = NULL,
x.test = NULL,
y.test = NULL,
max.depth = 3,
alpha = 0,
lambda = 0.1,
lincoef.params = setup.lincoef("glmnet"),
minobsinnode = 2,
minobsinnode.lin = 10,
learning.rate = 1,
part.minsplit = 2,
part.xval = 0,
part.max.depth = 1,
part.cp = 0,
weights = NULL,
metric = "MSE",
maximize = FALSE,
grid.resample.params = setup.grid.resample(),
keep.x = FALSE,
simplify = TRUE,
cxrcoef = FALSE,
n.cores = rtCores,
verbose = TRUE,
verbose.predict = FALSE,
trace = 0,
x.name = NULL,
y.name = NULL,
question = NULL,
outdir = NULL,
print.plot = FALSE,
plot.fitted = NULL,
plot.predicted = NULL,
plot.theme = rtTheme,
save.mod = FALSE
)
x |
Numeric vector or matrix / data frame of features i.e. independent variables |
y |
Numeric vector of outcome, i.e. dependent variable |
x.test |
Numeric vector or matrix / data frame of testing set features
Columns must correspond to columns in |
y.test |
Numeric vector of testing set outcome |
max.depth |
[gS] Integer: Max depth of additive tree. Default = 3 |
alpha |
[gS] Float: |
lambda |
[gS] Float: |
lincoef.params |
Named List: Output of setup.lincoef |
minobsinnode |
[gS] Integer: Minimum N observations needed in node, before considering splitting |
minobsinnode.lin |
Integer: Minimum N observations needed in node in order to train linear model. |
learning.rate |
[gS] Float (0, 1): Learning rate. |
part.max.depth |
Integer: Max depth for each tree model within the additive tree |
part.cp |
[gS] Float: Minimum complexity needed to allow split by |
weights |
Numeric vector: Weights for cases. For classification, |
cxrcoef |
Logical: Passed to predict.lihad, if TRUE, returns cases by coefficients matrix |
verbose |
Logical: If TRUE, print summary to screen. |
trace |
Integer: If higher than 0, will print more information to the console. |
x.name |
Character: Name for feature set |
y.name |
Character: Name for outcome |
question |
Character: the question you are attempting to answer with this model, in plain language. |
outdir |
Path to output directory.
If defined, will save Predicted vs. True plot, if available,
as well as full model output, if |
print.plot |
Logical: if TRUE, produce plot using |
plot.fitted |
Logical: if TRUE, plot True (y) vs Fitted |
plot.predicted |
Logical: if TRUE, plot True (y.test) vs Predicted.
Requires |
plot.theme |
Character: "zero", "dark", "box", "darkbox" |
save.mod |
Logical: If TRUE, save all output to an RDS file in |
The Hybrid Tree grows a tree using a sequence of regularized linear models and tree stumps. Use s_LINAD for the standard Linear Additive Tree Algorithm, which grows branches stepwise and includes all observations weighted by gamma
Grid searched parameters: max.depth, alpha, lambda, minobsinnode, learning.rate, part.cp
E.D. Gennatas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.