Skip to contents

Returns stored LOO predictions when available, or calls predict.oda_fit() on supplied newdata. Training predictions are not stored by the engine; supply newdata to obtain them.

Usage

oda_predictions(fit, split = c("train", "loo"), newdata = NULL, ...)

Arguments

fit

An oda_fit object.

split

One of "train" or "loo".

newdata

For split = "train": numeric vector or single-column data frame; if NULL, returns NULL with a message.

...

Passed to predict.oda_fit() when newdata is supplied.

Value

Integer vector of predictions or NULL.