Click or drag to resize
Accord.NET (logo)

CrossValidationTModelCreatePartitions Method

Gets the indices for the training and validation sets for the specified validation fold index.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public void CreatePartitions(
	int validationFoldIndex,
	out int[] trainingSet,
	out int[] validationSet
)
Request Example View Source

Parameters

validationFoldIndex
Type: SystemInt32
The index of the validation fold.
trainingSet
Type: SystemInt32
The indices for the observations in the training set.
validationSet
Type: SystemInt32
The indices for the observations in the validation set.
See Also