Click or drag to resize
Accord.NET (logo)

SplitSetValidationTModel, TInputCreateValidationSplits Method

Creates a list of the sample indices that should serve as the validation set.

Namespace:  Accord.MachineLearning.Performance
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
protected override int[] CreateValidationSplits(
	TInput[] x,
	int[] y
)
Request Example View Source

Parameters

x
Type: TInput
The input data from where subsamples should be drawn.
y
Type: SystemInt32
The output data from where subsamples should be drawn.

Return Value

Type: Int32
The indices of the samples in the original set that should compose the validation set.
See Also