Click or drag to resize
Accord.NET (logo)

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.7.0
Syntax
public TrainValDataSplit<TInput, TOutput> GetSubsample(
	int subsampleIndex,
	TInput[] x,
	TOutput[] y,
	double[] weights
)
Request Example View Source

Parameters

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, TOutput
A TrainValDataSplitTInput, TOutput that defines a data split of a subsample of the dataset.
See Also