boostLinear | R Documentation |
This wrapper function automatically initializes the model by adding all numerical
features as linear base-learner. Categorical features are dummy encoded and inserted
using another linear base-learners without intercept. The function boostLinear
does also train the model.
The returned object is an object of the Compboost class. This object can be
used for further analyses (see ?Compboost
for details).
boostLinear(
data,
target,
optimizer = NULL,
loss = NULL,
learning_rate = 0.05,
iterations = 100,
trace = -1,
intercept = TRUE,
data_source = InMemoryData,
df_cat = 2,
oob_fraction = NULL,
stop_args = NULL
)
data |
( |
target |
( |
optimizer |
(OptimizerCoordinateDescent | OptimizerCoordinateDescentLineSearch | OptimizerAGBM | OptimizerCosineAnnealing) |
loss |
(LossQuadratic | LossBinomial | LossHuber | LossAbsolute | LossQuantile) |
learning_rate |
( |
iterations |
( |
trace |
( |
intercept |
( |
data_source |
( |
df_cat |
( |
oob_fraction |
( |
stop_args |
( |
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 = boostLinear(data = iris, target = "Sepal.Length", loss = LossQuadratic$new(),
oob_fraction = 0.3)
mod$getBaselearnerNames()
mod$getEstimatedCoef()
table(mod$getSelectedBaselearner())
mod$predict()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.