Prepare the data for the specified test.

Share:

Description

This allows for different implementations for regression or classification

Usage

1
2
3
4
prepare(test, ...)

## Default S3 method:
prepare(test, ...)

Arguments

test

The test for which data is prepared

...

Extra arguments to prepare

Value

data A list containing prepared train (data$train) and holdout (data$holdout) data frames. Extra method specific preparation is executed through a call to method_prepare

Methods (by class)

  • default: The default method relevels the holdout set, so the holdout and train set are completely independent, and to prevent problems with certain algorithms that can't deal with different factor levels across train and holdout set

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.