Learn R Programming

rtemis (version 1.4.3)

preprocessed: Get preprocessed data from Preprocessor.

Description

Returns the preprocessed data from a Preprocessor object.

Usage

preprocessed(x)

Value

The preprocessed data, as a data.frame, data.table, or tibble, matching the data passed to preprocess(). When validation or test data were also preprocessed, a named list with elements training, validation, and test, as supplied.

Arguments

x

Preprocessor: A Preprocessor object.

Author

EDG

Details

A data.table is returned as a copy made with data.table::copy(), so modifying the result by reference, with := or set(), leaves x unchanged.

Examples

Run this code
prp <- preprocess(iris, setup_Preprocessor(scale = TRUE, center = TRUE))
preprocessed(prp)

Run the code above in your browser using DataLab