You are here: Start » AVL.NET » Invoke.CreateDataPartition
Divides the input set to test and train subsets, trying to maintain balance in class distribution.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void CreateDataPartition ( List<List<float>> inFeatureSet, List<int> inClassAssignment, float inTestToTrainingRatio, int inRandomSeed, List<List<float>> outTrainSet, List<List<float>> outTrainResponse, List<List<float>> outTestSet, List<List<float>> outTestResponse )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inFeatureSet | System.Collections.Generic.List<System.Collections.Generic.List<float>> | |||
![]()  | inClassAssignment | System.Collections.Generic.List<int> | |||
![]()  | inTestToTrainingRatio | float | <0.0f, 1.0f> | 0.75f | Default value: 0.75f. | 
![]()  | inRandomSeed | int | 0 | Default value: 0. | |
![]()  | outTrainSet | System.Collections.Generic.List<System.Collections.Generic.List<float>> | |||
![]()  | outTrainResponse | System.Collections.Generic.List<System.Collections.Generic.List<float>> | |||
![]()  | outTestSet | System.Collections.Generic.List<System.Collections.Generic.List<float>> | |||
![]()  | outTestResponse | System.Collections.Generic.List<System.Collections.Generic.List<float>> | 


