ConfusionMatrix Class

CVB.Net Documentation
Representation of a confusion matrix. A confusion matrix is a matrix that gives detailed information about the kind of mistakes that occurred during a leave-out or sample test.
Inheritance Hierarchy

SystemObject
  Stemmer.Cvb.Polimago.TestingConfusionMatrix

Namespace:  Stemmer.Cvb.Polimago.Testing
Assembly:  Stemmer.Cvb.Polimago (in Stemmer.Cvb.Polimago.dll) Version: 14.0.0.0
Syntax

public class ConfusionMatrix

The ConfusionMatrix type exposes the following members.

Constructors

  NameDescription
Public methodConfusionMatrix
Constructor.
Top
Properties

  NameDescription
Public propertyConfidenceThreshold
Threshold to be taken into account when determining the confusion matrix. If the threshold is modified, the whole matrix will be updated accordingly, so setting this property may be a costly action.
Public propertyItem
Access the results stored in the confusion matrix. The confusion matrix is to be read as follows: The first index (usually considered the line index) corresponds to the true class index, whereas the 2nd index (column index) is the prediction result. Example: Consider the result counts in a confusion matrix for a two-class problem to be distributed as follows: A B A 10 3 B 1 6 This means that 10 samples of class A have been correctly identified as class A, while 3 samples of class A have been misclassified as class B. Likewise, one sample of class B has been misclassified as class A, while 6 samples of class B have been identified correctly.
Public propertyNumClasses
Number of classes in this matrix.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRejects
Get the rejects for a given class.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTotalCorrect
Overall number of correctly classified samples.
Public methodTotalCorrect(Int32)
Number of correctly classified samples in a given class.
Public methodTotalErrors
Determine the total error count.
Public methodTotalErrors(Int32)
Determine the total number of errors made for a given class.
Public methodTotalRejects
Total number of rejected items (i.e. items that have a confidence of less than the currently set threshold, no matter if they are correctly classified or not).
Public methodTotalSamples
Return the total sample count.
Public methodTotalSamples(Int32)
Determine the total number of samples available for a given class.
Top
See Also

Reference