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_fitobject.- split
One of
"train"or"loo".- newdata
For
split = "train": numeric vector or single-column data frame; ifNULL, returnsNULLwith a message.- ...
Passed to
predict.oda_fit()whennewdatais supplied.