Learn R Programming

gbts (version 1.0.1)

predict.gbts: Predict method for optimized Gradient Boosted Trees

Description

This function generates predictions for a given dataset using the returned object from gbts. It first generates a set of predictions for each cross-validation model, and then averaging them on the log-odds scale (for binary classification) or on the response scale (for regression) to produce the final prediction.

Usage

"predict"(object, x, nwrk = 2, ...)

Arguments

object
a model object returned from gbts.
x
a data.frame of predictors. It has to follow the same format and restrictions as the training dataset that generated the model.
nwrk
an integer of the number of computing cores to be used. If nwrk is less than the number of available cores on the machine, it uses all available cores.
...
further arguments passed to or from other methods.

Value

A numeric vector of predictions. In the case of binary classification, predictions are probabilities.

See Also

gbts, comperf