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
Syntax
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

Parameters

cv
Type: Accord.MachineLearning.PerformanceCrossValidationResultTModel, TInput, Boolean
The cross-validation result.
inputs
Type: TInput
The inputs fed to the cross-validation object.
outputs
Type: SystemBoolean
The outputs fed to the cross-validation object.

Type Parameters

TModel
The type of the model being evaluated.
TInput
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