Main Content
divideind
Divide targets into three sets using specified indices
Description
[
separates targets into three sets: training, validation, and testing, according to indices
provided. It actually returns the same indices it receives as arguments; its purpose is to
allow the indices to be used for training, validation, and testing for a network to be set
manually.trainInd
,valInd
,testInd
] = divideind(Q
,trainInd
,valInd
,testInd
)
The indices are returned after removing any indices greater than Q. Note that some indices in the range 1:Q may not be assigned to any of the three sets, and the same indices should not be used in more than one set.
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2008a