Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Introduced in R2010b

Was this topic helpful?