Training indices for cross-validation
returns
the training indices idx
= training(c
)idx
for a cvpartition
object c
of type 'holdout'
or 'resubstitution'
.
If c.Type
is 'holdout'
, then
idx
specifies the observations in the training set.
If c.Type
is 'resubstitution'
, then
idx
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'
, then
idx
specifies the observations in the i
th
training set.
If c.Type
is 'leaveout'
, then
idx
specifies the observations reserved for training at
repetition i
.