Description Usage Arguments Details Value Examples
This wrapper function automatically initializes the model by adding all numerical
features of a dataset within a linear base-learner. Categorical features are
dummy encoded and inserted using linear base-learners without intercept. After
initializing the model boostLinear
also fits as many iterations as given
by the user through iters
.
1 2 3 4 | boostLinear(data, target, optimizer = OptimizerCoordinateDescent$new(),
loss, learning.rate = 0.05, iterations = 100, trace = -1,
intercept = TRUE, data.source = InMemoryData,
data.target = InMemoryData)
|
data |
[ |
target |
[ |
optimizer |
[ |
loss |
[ |
learning.rate |
[ |
iterations |
[ |
trace |
[ |
intercept |
[ |
data.source |
[ |
data.target |
[ |
The returned object is an object of the Compboost
class which then can be
used for further analyses (see ?Compboost
for details).
Usually a model of class Compboost
. This model is an R6
object
which can be used for retraining, predicting, plotting, and anything described in
?Compboost
.
1 2 3 4 5 6 | mod = boostLinear(data = iris, target = "Sepal.Length", loss = LossQuadratic$new())
mod$getBaselearnerNames()
mod$getEstimatedCoef()
table(mod$getSelectedBaselearner())
mod$predict()
mod$plot("Sepal.Width_linear")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.