Generate indices for training and test sets
___ = crossvalind(___,
specifies additional options using one or more name-value pair arguments in addition
to the arguments in previous syntaxes. For example, Name,Value
)cvIndices =
crossvalind('HoldOut',Groups,0.2,'Class',{'Cancer','Control'})
specifies to use observations from the 'Cancer' and 'Control' groups to generate
indices that represent 20% of observations as the holdout set and 80% as the
training set.