Click or drag to resize
Accord.NET (logo)

CrossValidationTModel Constructor (Int32, Int32, Int32)

Creates a new k-fold cross-validation algorithm.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public CrossValidation(
	int[] labels,
	int classes,
	int folds
)
Request Example View Source

Parameters

labels
Type: SystemInt32
A vector containing class labels.
classes
Type: SystemInt32
The number of different classes in labels.
folds
Type: SystemInt32
The number of folds, usually denoted as k (default is 10).
See Also