Main Content

dividetrain

Assign all targets to training set

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 1:Q

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 R2010b