cla_xgboost: XGBoost

View source: R/cla_xgboost.R

cla_xgboostR Documentation

XGBoost

Description

Gradient boosting classifier using xgboost.

Usage

cla_xgboost(attribute, params = list(), nrounds = 20)

Arguments

attribute

target attribute name

params

list of xgboost parameters

nrounds

number of boosting rounds

Value

returns a cla_xgboost object

References

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.

Examples

## 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)

daltoolbox documentation built on Nov. 23, 2026, 9:08 a.m.