Repartition data for cross-validation
creates a cnew
= repartition(c
)cvpartition
object cnew
that
defines a random partition of the same type as c
, where
c
is also a cvpartition
object. That is,
repartition
takes the same observations in c
and
repartitions them into new training and test sets.
Repartitioning is useful for Monte Carlo repetitions of cross-validation analyses.
crossval
calls
repartition
when you specify the 'MCReps'
name-value pair argument.