FUNCTION REFERENCE

cvpartition.repartition

Create a new random partition of the same type and size from a cvpartition object.

Create a new random partition of the same type and size from a cvpartition object.

Syntax

c2 = repartition(c)

Returns a fresh cvpartition with the same partition settings and newly sampled fold assignments.

Example

c = cvpartition(10, 'KFold', 5); c2 = repartition(c); c2.NumTestSets   % 5

Differences from MATLAB: None.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.