Click or drag to resize
Accord.NET (logo)

ToolsToConfusionMatrixTModel, TInput Method (CrossValidationResultTModel, TInput, Boolean, TInput, Boolean)

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

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


Type: Accord.MachineLearning.PerformanceCrossValidationResultTModel, TInput, Boolean
The cross-validation result.
Type: TInput
The inputs fed to the cross-validation object.
Type: SystemBoolean
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: ConfusionMatrix
A ConfusionMatrix 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, Boolean. 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