predict.xgbm: Get predictions from an xgbm object

Description Usage Arguments

View source: R/xgbm_methods.R

Description

Get predictions from an xgbm object

Usage

1
2
## S3 method for class 'xgbm'
predict(x, newdata = NULL, n.trees = NULL, type = "link", n.cores = NULL)

Arguments

x

A object of class 'xgbm'.

newdata

A data frame. If not specified, the original training data is used.

n.trees

The number of trees to use. If not specified, the number that optimizes cross-validation error is used.

type

String specifying either "link" or "response". Defaults to type = "link" for compatibility with gbm, but will seldom be desired.


harrysouthworth/mhdm documentation built on Feb. 4, 2022, 12:25 a.m.