divideind

Divide targets into three sets using specified indices

Syntax

[trainInd,valInd,testInd] = divideind(Q,trainInd,valInd,testInd)

Description

[trainInd,valInd,testInd] = divideind(Q,trainInd,valInd,testInd) 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.

It takes the following inputs,

Q

Number of targets to divide up

trainInd

Training indices

valInd

Validation indices

testInd

Test indices

and returns

trainInd

Training indices (unchanged)

valInd

Validation indices (unchanged)

testInd

Test indices (unchanged)

Examples

[trainInd,valInd,testInd] = ...
divideind(3000,1:2000,2001:2500,2501: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
Introduced in R2008a