Learn R Programming

crtests (version 0.2.1)

prepare: Prepare the data for the specified test.

Description

This allows for different implementations for regression or classification

Usage

prepare(test, ...)
"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