dividetrain
(To be removed) Assign all targets to training set
dividetrain 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.
Syntax
[trainInd,valInd,testInd] = dividetrain(Q)
Description
[trainInd,valInd,testInd] = dividetrain(Q) assigns all targets to
the training set and no targets to the validation or test sets. It takes the following
inputs:
Q | Number of targets to divide up. |
and returns
trainInd | Training indices equal to
|
valInd | Empty validation indices,
|
testInd | Empty test indices, |
Examples
[trainInd,valInd,testInd] = dividetrain(250);
Network Use
Here are the network properties that define which data division function to use, what
its parameters are, and what aspects of targets are divided up, when
train is called.
net.divideFcn net.divideParam net.divideMode
Version History
Introduced in R2010bSee Also
Time Series
Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork