training
Training indices for cross-validation
Description
returns
the training indices idx
= training(c
)idx
for a cvpartition
object c
of type 'holdout'
or 'resubstitution'
.
If
c.Type
is'holdout'
, thenidx
specifies the observations in the training set.If
c.Type
is'resubstitution'
, thenidx
specifies all observations.
returns the training indices for repetition idx
= training(c
,i
)i
of a cvpartition
object c
of type 'kfold'
or
'leaveout'
.
If
c.Type
is'kfold'
, thenidx
specifies the observations in thei
th training set.If
c.Type
is'leaveout'
, thenidx
specifies the observations reserved for training at repetitioni
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2008a