hex
Class ConfusionMatrix
java.lang.Object
water.Iced
hex.ConfusionMatrix
- All Implemented Interfaces:
- java.lang.Cloneable, Freezable
public final class ConfusionMatrix
- extends Iced
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DOC_FIELDS
public static DocGen.FieldDoc[] DOC_FIELDS
_arr
public long[][] _arr
ConfusionMatrix
public ConfusionMatrix(int n)
ConfusionMatrix
public ConfusionMatrix(long[][] value)
clone
public ConfusionMatrix clone()
- Overrides:
clone
in class Iced
add
public void add(int i,
int j)
classErr
public final double[] classErr()
size
public final int size()
classErr
public final double classErr(int c)
err
public double err()
add
public void add(ConfusionMatrix other)
precisionAndRecall
public double precisionAndRecall()
precisionAndRecall
public static double precisionAndRecall(long[][] cm)
- Returns the F-measure which combines precision and recall.
C.f. end of http://en.wikipedia.org/wiki/Precision_and_recall.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toJson
public com.google.gson.JsonArray toJson()