View source: R/gb_classifier.R
gb_classifier | R Documentation |
gb_classifier
applies gradient boosting classification to a data set.
gb_classifier(
y,
form,
distribution,
data.train,
n.trees,
interaction.depth,
n.minobsinnode,
shrinkage,
verbose = c(TRUE, FALSE)
)
y |
Outcome variable. A character vector containing the column names of
the outcome variable. A character scalar containing the column name of
the outcome variable in |
form |
Model formula. A two-sided linear formula describing the model to be fit, with the outcome on the LHS and the covariates separated by + operators on the RHS. |
distribution |
Model distribution. A character string specifying the name of the distribution to be used. |
data.train |
Training data. A data.frame containing the training data used to train the model. |
n.trees |
Total number of trees. An integer-valued scalar specifying the total number of trees to be fit. |
interaction.depth |
Interaction depth. An integer-valued scalar specifying the maximum depth of each tree. |
n.minobsinnode |
Minimum number of observations in terminal nodes. An integer-valued scalar specifying the minimum number of observations in the terminal nodes of the trees. |
shrinkage |
Learning rate. A numeric scalar specifying the shrinkage or learning rate applied to each tree in the expansion. |
verbose |
Verbose output. A logical vector indicating whether or not verbose output should be printed. |
A gradient tree boosting model. A gbm
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.