FUNCTION REFERENCE
cvpartition.test
Return logical indices for the test set of a cvpartition object.
Return logical indices for the test set of a cvpartition object.
Syntax
idx = test(c)Syntax
idx = test(c, i)Returns a logical column vector selecting test observations for holdout or fold i of k-fold cross-validation.
Example
c = cvpartition(10, 'KFold', 5); sum(test(c, 1)) % 2Differences from MATLAB: Supports KFold, HoldOut, LeaveOut and Resubstitution partitions.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.