Perform regression by boosting a base learner
glmLiteBoostTV(x, y = NULL, x.valid = NULL, y.valid = NULL,
x.test = NULL, y.test = NULL, resid = NULL, boost.obj = NULL,
mod.params = list(), weights.p = 1, weights.0 = 0,
weights = NULL, learning.rate = 0.1, max.iter = 10, init = NULL,
seed = NULL, x.name = NULL, y.name = NULL, question = NULL,
base.verbose = FALSE, verbose = TRUE, trace = 0,
print.progress.every = 5, print.error.plot = "final",
prefix = NULL, plot.theme = getOption("rt.fit.theme", "lightgrid"),
plot.fitted = NULL, plot.predicted = NULL, print.plot = FALSE,
print.base.plot = FALSE, plot.type = "l", n.cores = rtCores,
outdir = NULL, ...)
Numeric vector or matrix / data frame of features i.e. independent variables
Numeric vector of outcome, i.e. dependent variable
Data.frame; optional: Validation data
Float, vector; optional: Validation outcome
Numeric vector or matrix / data frame of testing set features
Columns must correspond to columns in x
Numeric vector of testing set outcome
Float, vector, length = length(y): Residuals to work on. Do not change unless you know what you're doing. Default = NULL, for regular boosting
[Internal use]
Named list of arguments for glmLite
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
Float (0, 1] Learning rate for the additive steps
Integer: Maximum number of iterations (additive steps) to perform. Default = 10
Float: Initial value for prediction. Default = mean(y)
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
Integer: Print progress over this many iterations
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. "none" for no plot.
Internal
String: "zero", "dark", "box", "darkbox"
Logical: if TRUE, plot True (y) vs Fitted
Logical: if TRUE, plot True (y.test) vs Predicted.
Requires x.test
and y.test
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
String: "l" or "p". Plot using lines or points. Default = "l"
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
Additional parameters to be passed to glmLite
If learning.rate
is set to 0, a nullmod will be created