Click or drag to resize
Accord.NET (logo)

ToolsToConfusionMatrixTModel, TInput Method (CrossValidationResultTModel, TInput, Int32, TInput, Int32)

Generates a GeneralConfusionMatrix from a set of cross-validation results.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
public static GeneralConfusionMatrix ToConfusionMatrix<TModel, TInput>(
	this CrossValidationResult<TModel, TInput, int> cv,
	TInput[] inputs,
	int[] outputs
where TModel : class, Object, ITransform<TInput, int>
Request Example View Source


Type: Accord.MachineLearning.PerformanceCrossValidationResultTModel, TInput, Int32
The cross-validation result.
Type: TInput
The inputs fed to the cross-validation object.
Type: SystemInt32
The outputs fed to the cross-validation object.

Type Parameters

The type of the model being evaluated.
The type of the inputs accepted by the model.

Return Value

Type: GeneralConfusionMatrix
A GeneralConfusionMatrix that captures the performance of the model across all validation folds.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CrossValidationResultTModel, TInput, Int32. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also