View source: R/boost_components.R
boostComponents | R Documentation |
This wrapper function automatically initializes the model by adding all numerical features as components. This means, that for each numerical feature a linear effect and non-linear spline base-learner is added. The non-linear part is constructed in way that it cannot model the linear part. Hence, it is just selected if a non-linear base learner is really necessary. Categorical features are dummy encoded and inserted using another linear base-learners without intercept.
The returned object is an object of the Compboost class. This object can be
used for further analyses (see ?Compboost
for details).
boostComponents(
data,
target,
optimizer = NULL,
loss = NULL,
learning_rate = 0.05,
iterations = 100,
trace = -1,
degree = 3,
n_knots = 20,
penalty = 2,
df = 0,
differences = 2,
data_source = InMemoryData,
oob_fraction = NULL,
bin_root = 0,
cache_type = "inverse",
stop_args = list(),
df_cat = 1,
stop_time = "microseconds",
additional_risk_logs = list()
)
data |
( |
target |
( |
optimizer |
(OptimizerCoordinateDescent | OptimizerCoordinateDescentLineSearch | OptimizerAGBM | OptimizerCosineAnnealing) |
loss |
(LossQuadratic | LossBinomial | LossHuber | LossAbsolute | LossQuantile) |
learning_rate |
( |
iterations |
( |
trace |
( |
degree |
( |
n_knots |
( |
penalty |
( |
df |
( |
differences |
( |
data_source |
( |
oob_fraction |
( |
bin_root |
( |
cache_type |
( |
stop_args |
( |
df_cat |
( |
stop_time |
( |
additional_risk_logs |
( |
A model of the Compboost class. This model is an R6 object
which can be used for retraining, predicting, plotting, and anything described in
?Compboost
.
mod = boostComponents(data = iris, target = "Sepal.Length", df = 4)
mod$getBaselearnerNames()
table(mod$getSelectedBaselearner())
plotPEUni(mod, "Petal.Length")
mod$predict()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.