CV.RandomPart {IBCF.MTME} | R Documentation |
Cross-Validation with Random Partitions
Description
This method consists of randomly dividing the training data set and the test data set. For each division, the approximation function is adjusted from the training data and calculates the output values for the test data set. The result corresponds to the arithmetic mean of the values obtained for the different divisions.
Usage
CV.RandomPart(DataSet, NPartitions = 10, PTesting = 0.35,
Traits.testing = NULL, Set_seed = NULL)
Arguments
DataSet |
|
NPartitions |
|
PTesting |
|
Traits.testing |
|
Set_seed |
|
Value
List
A list object with length of NPartitions
, every index has a matrix
, where
is the number of
NLines
and is the number of
NEnv
NTraits
. The values inside is 1 for training and 2 for testing.
Examples
## Not run:
library(IBCF.MTME)
data('Wheat_IBCF')
CV.RandomPart(Wheat_IBCF)
CV.RandomPart(Wheat_IBCF, NPartitions = 10)
CV.RandomPart(Wheat_IBCF, Traits.testing = 'DH')
CV.RandomPart(Wheat_IBCF, NPartitions = 10, PTesting = .35)
CV.RandomPart(Wheat_IBCF, NPartitions = 10, Traits.testing = 'DH')
CV.RandomPart(Wheat_IBCF, NPartitions = 10, PTesting = .35, Set_seed = 5)
CV.RandomPart(Wheat_IBCF, NPartitions = 10, PTesting = .35, Traits.testing = 'DH')
CV.RandomPart(Wheat_IBCF, NPartitions = 10, PTesting = .35, Traits.testing = 'DH', Set_seed = 5 )
## End(Not run)