| 
            
              ToolsToConfusionMatrixTModel, TInput Method (CrossValidationResultTModel, TInput, Int32, TInput, Int32)
             | 
          
        
          
    Namespace: 
   Accord.MachineLearning
    Assembly:
   Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntaxpublic static GeneralConfusionMatrix ToConfusionMatrix<TModel, TInput>(
	this CrossValidationResult<TModel, TInput, int> cv,
	TInput[] inputs,
	int[] outputs
)
where TModel : class, Object, ITransform<TInput, int>
<ExtensionAttribute>
Public Shared Function ToConfusionMatrix(Of TModel As {Class, Object, ITransform(Of TInput, Integer)}, TInput) ( 
	cv As CrossValidationResult(Of TModel, TInput, Integer),
	inputs As TInput(),
	outputs As Integer()
) As GeneralConfusionMatrix Request Example
		View SourceParameters
- cv
 - Type: Accord.MachineLearning.PerformanceCrossValidationResultTModel, TInput, Int32
The cross-validation result. - inputs
 - Type: TInput
The inputs fed to the cross-validation object. - outputs
 - Type: SystemInt32
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: 
GeneralConfusionMatrixA 
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