getTrain {FKBL}R Documentation

Gets the train data from a problem

Description

This function belongs to a pair, whose other function is getTest. It divides the problem in the number of chunks given. It returns all the data except the i-th chunk, as the i-th chunk will be the test data.

Usage

 getTrain(data,chunks,i)

Arguments

Takes the data, the number of chunks and the test chunk.

data The data of the problem.
chunks The number of chunks to divide the data.
i The chunk reserved to be the test data.

Value

A dataset with the train data.

Examples

 data(trainA)
 getTrain(trainA,10,1)

[Package FKBL version 0.50-4 Index]