|
BaseSplitSetValidationTResult, TModel, TLearner, TInput, TOutputLearnSubset Method
|
Learns and evaluates a model in a single subset of the data.
Namespace:
Accord.MachineLearning.Performance
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax protected SplitResult<TModel, TInput, TOutput> LearnSubset(
TrainValDataSplit<TInput, TOutput> subset,
int index = 0
)
Protected Function LearnSubset (
subset As TrainValDataSplit(Of TInput, TOutput),
Optional index As Integer = 0
) As SplitResult(Of TModel, TInput, TOutput)
Request Example
View SourceParameters
- subset
- Type: Accord.MachineLearning.PerformanceTrainValDataSplitTInput, TOutput
The subset of the data containing the training and testing subsets where
a model should be trained and evaluated, respectively. - index (Optional)
- Type: SystemInt32
The index of this subset, if applicable.
Return Value
Type:
SplitResultTModel,
TInput,
TOutputA
SplitResultTModel, TInput, TOutput object containing the created model
and its performance on the training and validation sets.
See Also