predict.gbt: Predict method for GBT models

Description Usage Arguments Details Value Author(s)

Description

Predicted values based on a gradient boosted trees object

Usage

1
2
3
4
5
## S3 method for class 'gbt'
predict(object,
        newdata,
        n.trees,
        ...)

Arguments

object

Object of class inheriting from (gbt)

newdata

Data frame of observations for which to make predictions

n.trees

Number of trees used in the prediction.

...

further arguments passed to or from other methods

Details

predict.gbt produces predicted values for each observation in newdata using the the first n.trees iterations of the boosting sequence. The user has the responsibility to make sure that newdata is of the same format (order and number of variables) as the one originally used to fit the model.

Value

Returns a vector of predictions. By default the predictions are on the scale of f(x). For example, for the binomial deviance loss the returned value is on the log odds scale.

Author(s)

Alexandre Michelis <alexandremichelis@gmail.com>


harrysouthworth/gbt documentation built on May 17, 2019, 3:03 p.m.