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
Stemmer.Cvb.Polimago.TestingConfusionMatrix
Namespace: Stemmer.Cvb.Polimago.Testing
Assembly: Stemmer.Cvb.Polimago (in Stemmer.Cvb.Polimago.dll) Version: 14.0.0.0
Syntax
The ConfusionMatrix type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ConfusionMatrix |
Constructor.
|
Properties
Name | Description | |
---|---|---|
ConfidenceThreshold |
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.
| |
Item |
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.
| |
NumClasses |
Number of classes in this matrix.
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Rejects |
Get the rejects for a given class.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TotalCorrect |
Overall number of correctly classified samples.
| |
TotalCorrect(Int32) |
Number of correctly classified samples in a given class.
| |
TotalErrors |
Determine the total error count.
| |
TotalErrors(Int32) |
Determine the total number of errors made for a given class.
| |
TotalRejects |
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).
| |
TotalSamples |
Return the total sample count.
| |
TotalSamples(Int32) |
Determine the total number of samples available for a given class.
|
See Also