Boost an additive tree using addtboost
s.ADDTBOOST(x, y = NULL, x.test = NULL, y.test = NULL,
x.valid = NULL, y.valid = NULL, resid = NULL, boost.obj = NULL,
mod.params = rtset.ADDT(), case.p = 1, weights = NULL,
max.iter = 10, learning.rate = 0.1, init = mean(y),
cxrcoef = FALSE, print.progress.every = 5,
print.error.plot = "final", x.name = NULL, y.name = NULL,
question = NULL, base.verbose = FALSE, verbose = TRUE, trace = 0,
prefix = NULL, plot.fitted = NULL, plot.predicted = NULL,
plot.theme = getOption("rt.fit.theme", "lightgrid"),
print.plot = TRUE, print.base.plot = FALSE, plot.type = "l",
outdir = NULL, save.mod = ifelse(!is.null(outdir), TRUE, FALSE), ...)
Data frame: Input features
Vector: Output
Numeric vector or matrix / data frame of testing set features
Columns must correspond to columns in x
Numeric vector of testing set outcome
Named list of arguments for mod
Numeric vector: Weights for cases. For classification, weights
takes precedence
over ipw
, therefore set weights = NULL
if using ipw
.
Note: If weight
are provided, ipw
is not used. Leave NULL if setting ipw = TRUE
. Default = NULL
Integer: Maximum number of iterations (additive steps) to perform. Default = 10
Float (0, 1] Learning rate for the additive steps
Float: Initial value for prediction. Default = mean(y)
Logical: If TRUE, pass cxr = TRUE, cxrcoef = TRUE
to predict.addTreeRaw
String or Integer: "final" plots a training and validation (if available) error curve at the end of training. If integer, plot training and validation error curve every this many iterations during training
Character: Name for feature set
Character: Name for outcome
String: the question you are attempting to answer with this model, in plain language.
Logical: verbose
argument passed to learner
Logical: If TRUE, print summary to screen.
Integer: If > 0, print diagnostic info to console
Logical: if TRUE, plot True (y) vs Fitted
Logical: if TRUE, plot True (y.test) vs Predicted.
Requires x.test
and y.test
String: "zero", "dark", "box", "darkbox"
Logical: if TRUE, produce plot using mplot3
Takes precedence over plot.fitted
and plot.predicted
Logical: Passed to print.plot
argument of base learner, i.e. if TRUE, print error plot
for each base learner
Path to output directory.
If defined, will save Predicted vs. True plot, if available,
as well as full model output, if save.mod
is TRUE
Logical. If TRUE, save all output as RDS file in outdir
save.mod
is TRUE by default if an outdir
is defined. If set to TRUE, and no outdir
is defined, outdir defaults to paste0("./s.", mod.name)
Additional parameters to be passed to learner
Float: If training error <= this value, training stops
Float: If validation error <= this value, training stops