|
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
)
Public Function GetFold (
validationFoldIndex As Integer,
x As TInput(),
y As TOutput(),
weights As Double()
) As TrainValDataSplit(Of TInput, TOutput)
Request Example
View SourceParameters
- 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,
TOutputA
TrainValDataSplitTInput, TOutput that defines a
data split of a subsample of the dataset.
See Also