Usage
gbm.holdout(data, gbm.x, gbm.y, learning.rate = 0.001, tree.complexity = 1, family = "bernoulli", n.trees = 200, add.trees = n.trees, max.trees = 20000, verbose = TRUE, train.fraction = 0.8, permute = TRUE, prev.stratify = TRUE, var.monotone = rep(0, length(gbm.x)), site.weights = rep(1, nrow(data)), refit = TRUE, keep.data = TRUE)
Arguments
gbm.x
indices of the predictors in the input dataframe
gbm.y
index of the response in the input dataframe
learning.rate
typically varied between 0.1 and 0.001
tree.complexity
sometimes called interaction depth
family
"bernoulli","poisson", etc. as for gbm
n.trees
initial number of trees
add.trees
number of trees to add at each increment
max.trees
maximum number of trees to fit
verbose
controls degree of screen reporting
train.fraction
proportion of data to use for training
permute
reorder data to start with
prev.stratify
stratify selection for presence/absence data
var.monotone
allows constraining of response to monotone
site.weights
set equal to 1 by default
refit
refit the model with the full data but id'd no of trees
keep.data
keep copy of the data