| Modifier and Type | Class and Description |
|---|---|
static class |
ConfusionMatrix.ErrMetric |
| Modifier and Type | Field and Description |
|---|---|
long[][] |
_arr |
double[] |
_classErr |
double |
_predErr |
static DocGen.FieldDoc[] |
DOC_FIELDS |
| Constructor and Description |
|---|
ConfusionMatrix(int n) |
ConfusionMatrix(long[][] value) |
| Modifier and Type | Method and Description |
|---|---|
double |
accuracy()
The percentage of predictions that are correct.
|
void |
add(ConfusionMatrix other) |
void |
add(int i,
int j) |
double[] |
classErr() |
double |
classErr(int c) |
ConfusionMatrix |
clone() |
double |
err() |
double |
F1()
Returns the F-measure which combines precision and recall.
|
boolean |
isBinary() |
double |
max_per_class_error()
The maximum per-class error
|
int |
nclasses() |
double |
precision()
The percentage of positive predictions that are correct.
|
double |
recall()
The percentage of positive labeled instances that were predicted as positive.
|
void |
reComputeErrors() |
int |
size() |
double |
specificity()
The percentage of negative labeled instances that were predicted as negative.
|
void |
toHTML(java.lang.StringBuilder sb,
java.lang.String[] domain) |
com.google.gson.JsonArray |
toJson() |
java.lang.String |
toString() |
long |
totalRows() |
frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFieldspublic static DocGen.FieldDoc[] DOC_FIELDS
@Request.API(help="Confusion matrix (Actual/Predicted)") public long[][] _arr
@Request.API(help="Prediction error by class") public final double[] _classErr
@Request.API(help="Prediction error") public double _predErr
public ConfusionMatrix(int n)
public ConfusionMatrix(long[][] value)
public ConfusionMatrix clone()
public void add(int i,
int j)
public double[] classErr()
public final int size()
public void reComputeErrors()
public final double classErr(int c)
public long totalRows()
public void add(ConfusionMatrix other)
public double err()
public double accuracy()
public double specificity()
public double recall()
public double precision()
public double max_per_class_error()
public final int nclasses()
public final boolean isBinary()
public double F1()
public java.lang.String toString()
toString in class java.lang.Objectpublic com.google.gson.JsonArray toJson()
public void toHTML(java.lang.StringBuilder sb,
java.lang.String[] domain)