public class ConfusionMatrix<T extends java.lang.Comparable<? super T>>
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description | 
|---|
| ConfusionMatrix() | 
| ConfusionMatrix(ConfusionMatrix<T> other)Creates a new ConfusionMatrix initialized with the contents of another ConfusionMatrix. | 
| ConfusionMatrix(java.util.List<T> classes)Creates an empty confusion Matrix | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(ConfusionMatrix<T> other)Adds the entries from another confusion matrix to this one. | 
| void | add(T actual,
   T predicted)Increments the entry specified by actual and predicted by one. | 
| void | add(T actual,
   T predicted,
   int count)Increments the entry specified by actual and predicted by count. | 
| boolean | equals(java.lang.Object o) | 
| int | getActualTotal(T actual)Computes the total number of times the class actually appeared in the data. | 
| java.util.List<T> | getClasses()Gives the applyTransformToDestination of all classes in the confusion matrix. | 
| int | getCount(T actual,
        T predicted)Gives the count of the number of times the "predicted" class was predicted for the "actual"
 class. | 
| int | getPredictedTotal(T predicted)Computes the total number of times the class was predicted by the classifier. | 
| int | hashCode() | 
| static void | main(java.lang.String[] args) | 
| java.lang.String | toCSV()Outputs the ConfusionMatrix as comma-separated values for easy import into spreadsheets | 
| java.lang.String | toHTML()Outputs Confusion Matrix in an HTML table. | 
| java.lang.String | toString() | 
public ConfusionMatrix(java.util.List<T> classes)
public ConfusionMatrix()
public ConfusionMatrix(ConfusionMatrix<T> other)
public void add(T actual, T predicted)
public void add(T actual, T predicted, int count)
public void add(ConfusionMatrix<T> other)
public java.util.List<T> getClasses()
public int getCount(T actual, T predicted)
public int getPredictedTotal(T predicted)
public int getActualTotal(T actual)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toCSV()
public java.lang.String toHTML()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static void main(java.lang.String[] args)