method_prepare {crtests}R Documentation

Method-specific data preparation

Description

Generic function for method-specific data preparation, if any is necessary

Usage

method_prepare(method, test, ...)

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

## S3 method for class 'randomForest'
method_prepare(method, test, ...)

Arguments

method

The regression or classification method that needs specific data preparation.

test

The test being executed, whose data attribute is a list of the train and holdout data sets, that has already been prepared by prepare_data

...

Extra arguments to pass on to class methods

Value

A prepared data.frame

identity(data)

Methods (by class)


[Package crtests version 0.2.1 Index]