training
Training indices for cross-validation
Description
returns the training indicesidx
= training(c
)idx
for acvpartition
objectc
of type'holdout'
或'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 repetitionidx
= training(c
,i
)i
of acvpartition
objectc
of type'kfold'
或'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
.