powered by
Gradient boosting classifier using xgboost.
xgboost
cla_xgboost(attribute, params = list(), nrounds = 20)
returns a cla_xgboost object
cla_xgboost
target attribute name
list of xgboost parameters
number of boosting rounds
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) }
Run the code above in your browser using DataLab