predict.EBM {ebm} | R Documentation |
Predict method for EBM objects
Description
Compute predicted values from a fitted explainable boosting machine.
Usage
## S3 method for class 'EBM'
predict(
object,
newdata,
type = c("response", "link", "class", "terms"),
se_fit = FALSE,
init_score = NULL,
...
)
Arguments
object |
A fitted ebm object. |
newdata |
A data frame in which to look for variables with which to predict. |
type |
The type of prediction required. Current options include:
|
se_fit |
Logical indicating whether or not standard errors are required. Ignored for multiclass outcomes. Note that standard errors are only available on the link scale. |
init_score |
Optional. Either a model that can generate scores or
per-sample initialization score. If samples scores it should be the same
length as |
... |
Additional optional arguments. (Currently ignored.) |
Value
Either a vector, matrix, or list of results. See the type
argument
for details.