Back to FabImage Studio website

You are here: Start » Filter Reference » Data Classification » Data Classification Common » CreateDataPartition

CreateDataPartition


Module: FoundationPro

Divides the input set to test and train subsets, trying to maintain balance in class distribution.

Name Type Range Description
Input value
inFeatureSet RealArrayArray
Input value
inClassAssignment IntegerArray
Input value
inTestToTrainingRatio Real 0.0 - 1.0
Input value
inRandomSeed Integer
Output value
outTrainSet RealArrayArray
Output value
outTrainResponse RealArrayArray
Output value
outTestSet RealArrayArray
Output value
outTestResponse RealArrayArray

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Inconsistent size of inFeatureSet and inClassAssignment arrays

Complexity Level

This filter is available on Expert Complexity Level.