You are here: Start » AVL.NET » AVL.CreateDataPartition

AVL.CreateDataPartition

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateDataPartition
(
	IList<IList<float>> inFeatureSet,
	IList<int> inClassAssignment,
	float inTestToTrainingRatio,
	int inRandomSeed,
	IList<List<float>> outTrainSet,
	IList<List<float>> outTrainResponse,
	IList<List<float>> outTestSet,
	IList<List<float>> outTestResponse
)

Parameters

Errors

List of possible exceptions:

Error type Description
DomainError Inconsistent size of inFeatureSet and inClassAssignment arrays

See also