Click or drag to resize
Accord.NET (logo)

TrainTestDataSplitTInput, TOutput Constructor (Int32, TInput, TOutput, Double, Int32, Int32)

Namespace:  Accord.MachineLearning.Performance
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public TrainTestDataSplit(
	int index,
	TInput[] inputs,
	TOutput[] outputs,
	double[] weights,
	int[] trainIndices,
	int[] testIndices
)
Request Example View Source

Parameters

index
Type: SystemInt32
The index associated with this subset, if any.
inputs
Type: TInput
The input instances in this subset.
outputs
Type: TOutput
The output instances in this subset.
weights
Type: SystemDouble
The weights associated with the input instances.
trainIndices
Type: SystemInt32
The indices of the training instances in relation to the original dataset.
testIndices
Type: SystemInt32
The indices of the validation instances in relation to the original dataset.
See Also