divideind
(To be removed) Divide targets into three sets using specified indices
divideind will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
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 R2008aSee Also
Time Series Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork