Fits generalized boosted regression models.
GBMModel(
distribution = NULL,
n.trees = 100,
interaction.depth = 1,
n.minobsinnode = 10,
shrinkage = 0.1,
bag.fraction = 0.5
)
optional character string specifying the name of the
distribution to use or list with a component name
specifying the
distribution and any additional parameters needed. Set automatically
according to the class type of the response variable.
total number of trees to fit.
maximum depth of variable interactions.
minimum number of observations in the trees terminal nodes.
shrinkage parameter applied to each tree in the expansion.
fraction of the training set observations randomly selected to propose the next tree in the expansion.
MLModel
class object.
factor
, numeric
, Surv
n.trees
, interaction.depth
, shrinkage
*,
n.minobsinnode
*
* included only in randomly sampled grid points
Default values for the NULL
arguments and further model details can be
found in the source link below.
# NOT RUN {
fit(Species ~ ., data = iris, model = GBMModel)
# }
Run the code above in your browser using DataLab