dividerand
(To be removed) Divide targets into three sets using random indices
dividerand 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
[
takes the number of targets to divide up, the ratio of vectors for training, the ratio of
vectors for validation, and the ratio of vectors for testing, and returns the training
indices, the validation indices, and the test indices.trainInd,valInd,testInd] = dividerand(Q,trainRatio,valRatio,testRatio)
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