getTrain {FKBL} | R Documentation |
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.
getTrain(data,chunks,i)
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. |
A dataset with the train data.
data(trainA) getTrain(trainA,10,1)