| cla_xgboost | R Documentation |
Gradient boosting classifier using xgboost.
cla_xgboost(attribute, params = list(), nrounds = 20)
attribute |
target attribute name |
params |
list of xgboost parameters |
nrounds |
number of boosting rounds |
returns a cla_xgboost object
if (requireNamespace("xgboost", quietly = TRUE)) {
data(iris)
model <- cla_xgboost("Species", nrounds = 20)
model <- fit(model, iris)
pred <- predict(model, iris)
table(pred, iris$Species)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.