|
CrossValidationTModel, TLearner, TInput, TOutputCreateValidationSplits 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 virtual int[] CreateValidationSplits(
TInput[] x,
TOutput[] y,
int numberOfFolds
)
Protected Overridable Function CreateValidationSplits (
x As TInput(),
y As TOutput(),
numberOfFolds As Integer
) As Integer()
Request Example
View SourceParameters
- x
- Type: TInput
The input data from where subsamples should be drawn. - y
- Type: TOutput
The output data from where subsamples should be drawn. - numberOfFolds
- Type: SystemInt32
The number of folds to be created.
Return Value
Type:
Int32The indices of the samples in the original set that should compose the validation set.
See Also