predict.caretx: Predict the outcome for a caretx model.

View source: R/caretx_oop.R

predict.caretxR Documentation

Predict the outcome for a caretx model.

Description

Predicts the outcome in train, cross-validation and, optionally, test data set.

Usage

## S3 method for class 'caretx'
predict(object, newdata = NULL, plain = FALSE, ...)

Arguments

object

caretx model.

newdata

test data set.

plain

logical, should the results be coerced to a single data frame?

...

extra arguments, currently none.

Details

Extends the output of predict.train method.

Value

a list of predx objects containing the predictions for the training, resample (CV) and test data sets along with model and data set type information. See: components.predx, summary.predx, residuals.predx, confusion.predx and plot.predx for useful methods for predx objects. If plain is set to TRUE a prediction data frame if plain is set to TRUE.


PiotrTymoszuk/caretExtra documentation built on Oct. 15, 2023, 10:03 p.m.