|
BootstrapTModel, TInput, TOutputGetSubsample 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> GetSubsample(
int subsampleIndex,
TInput[] x,
TOutput[] y,
double[] weights
)
Public Function GetSubsample (
subsampleIndex As Integer,
x As TInput(),
y As TOutput(),
weights As Double()
) As TrainValDataSplit(Of TInput, TOutput)
Request Example
View SourceParameters
- subsampleIndex
- 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