| 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
Friedman, J. H. (2001). Greedy Function Approximation: A Gradient Boosting Machine. Annals of Statistics, 29(5):1189-1232. Chen, T. and Guestrin, C. (2016). XGBoost: A Scalable Tree Boosting System. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785-794.
## Not run:
data(iris)
model <- cla_xgboost("Species")
model <- fit(model, iris)
pred <- predict(model, iris)
eval <- evaluate(model, adjust_class_label(iris$Species), pred)
eval$metrics
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.