crossValidate Cross validate prtAction using prtDataSet and cross validation keys.
OUTPUTDATASET = OBJ.crossValidate(DATASET, KEYS) cross-
validates the prtAction object OBJ using the prtDataSet
DATASET and the KEYS. DATASET must be a labeled prtDataSet.
KEYS must be a vector of integers with the same number of
elements as DATASET has observations.
The KEYS are are used to parition the input DATASET into
test and training data sets. For each unique key, a test set
will be created out of the corresponding observations of the
prtDataSet. The remaining observations will be used as
training data.
[OUTPUTDATASET, TRAINEDACTIONS] = OBJ.crossValidate(DATASET,
KEYS) outputs the trained prtAction objects TRAINEDACTIONS.
TRAINEDACTIONS will have a length equal to the number of
unique KEYS.
Help for prtClassKmeansPrototypes/crossValidate is inherited from superclass prtAction