|
ConfusionMatrixEstimateTInput Method (IClassifierTInput, Int32, TInput, Int32)
|
Estimates a
ConfusionMatrix directly from a classifier, a set of inputs and its expected outputs.
Namespace:
Accord.Statistics.Analysis
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public static ConfusionMatrix Estimate<TInput>(
IClassifier<TInput, int> classifier,
TInput[] inputs,
int[] expected
)
Public Shared Function Estimate(Of TInput) (
classifier As IClassifier(Of TInput, Integer),
inputs As TInput(),
expected As Integer()
) As ConfusionMatrix
Request Example
View SourceParameters
- classifier
- Type: Accord.MachineLearningIClassifierTInput, Int32
The classifier. - inputs
- Type: TInput
The input vectors. - expected
- Type: SystemInt32
The expected outputs associated with each input vector.
Type Parameters
- TInput
- The type of the inputs accepted by the classifier.
Return Value
Type:
ConfusionMatrixA
ConfusionMatrix capturing the performance of the classifier when
trying to predict the outputs
expected from the
inputs.
See Also