Back to Adaptive Vision Studio website

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


Module: FoundationPro

Divides input set to test and train set, trying to maintain balance in class distribution in both resulting sets.

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


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.