buildXGboost
buildXGboost.Rd
this is a wrapper around caret and xgboost to quickly build a xgboost model
Examples
if (FALSE) { # \dontrun{
xgbModel <- buildXGboost(voteDf, "vote")
# the following grid is used in default if no custom grid is specified
myGrid <- expand.grid(eta=c(0.2:0.4),
gamma=0,
max_depth=c(3:5),
colsample_bytree=c(0.6,0.8, 1),
min_child_weight=1,
subsample=c(0.75, 0.85,1),
nrounds=c(50,100,150))
xgbModel <- buildXGboost(voteDf, "vote", customGrid = myGrid)
} # }