Contents

dividetrain

Assign all targets to training set

Syntax

[trainInd,valInd,testInd] = dividetrain(Q,trainRatio,valRatio,testRatio)

Description

[trainInd,valInd,testInd] = dividetrain(Q,trainRatio,valRatio,testRatio) assigns all targets to the training set and no targets to either the validation or test sets. It takes the following inputs,

Q

Number of targets to divide up.

and returns

trainInd

Training indices equal to 1:Q

valInd

Empty validation indices, []

testInd

Empty test indices, []

Examples

[trainInd,valInd,testInd] = dividetrain(3000);

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
Was this topic helpful?