Click or drag to resize
Accord.NET (logo)

CrossValidationTModel, TLearner, TInput, TOutputGetFold Method

Gets a subset of the training and testing sets.

Namespace:  Accord.MachineLearning.Performance
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public TrainValDataSplit<TInput, TOutput> GetFold(
	int validationFoldIndex,
	TInput[] x,
	TOutput[] y,
	double[] weights
)
Request Example View Source

Parameters

validationFoldIndex
Type: SystemInt32
Index of the subsample.
x
Type: TInput
The input data x.
y
Type: TOutput
The output data y.
weights
Type: SystemDouble
The weights of each sample.

Return Value

Type: TrainValDataSplitTInput, TOutput
A TrainValDataSplitTInput, TOutput that defines a data split of a subsample of the dataset.
See Also