Modifier and Type | Field and Description |
---|---|
protected long[][][] |
_cms |
protected boolean |
_computedOOB |
protected java.lang.String[] |
_domain |
protected long |
_errors
Number of mistaken assignments.
|
protected long[] |
_errorsPerTree |
protected long[][] |
_matrix
The Confusion Matrix - a NxN matrix of [actual] -vs- [predicted] classes,
referenced as _matrix[actual][predicted].
|
protected long |
_rows
Number of rows used for building the matrix.
|
protected long |
_skippedRows
Number of skipped rows.
|
protected Key |
_SpeeDRFModelKey |
protected float |
_sum |
protected boolean |
_valid |
Modifier and Type | Method and Description |
---|---|
hex.singlenoderf.CMTask.CM |
add(hex.singlenoderf.CMTask.CM cm)
Add a confusion matrix.
|
float |
classError()
Domain - names of columns and rows
|
int |
dimension() |
java.lang.String[] |
domain() |
static CMTask.CMFinal |
make()
Make non-valid confusion matrix
|
static CMTask.CMFinal |
make(hex.singlenoderf.CMTask.CM cm,
SpeeDRFModel model,
java.lang.String[] domain,
long[] errorsPerTree,
boolean computedOOB,
float sum,
long[][][] cms)
Create a new confusion matrix.
|
long |
matrix(int i,
int j) |
float |
mse() |
void |
report()
Output information about this RF.
|
void |
report(java.lang.StringBuilder sb)
Reports size of dataset and computed classification error.
|
long |
rows()
Return number of rows used for CM computation
|
long |
skippedRows()
Return number of skipped rows during CM computation
The number includes in-bag rows if oobee is used.
|
java.lang.String |
toString()
Text form of the confusion matrix
|
boolean |
valid() |
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
protected final Key _SpeeDRFModelKey
protected final java.lang.String[] _domain
protected final long[] _errorsPerTree
protected final boolean _computedOOB
protected final long[][][] _cms
protected boolean _valid
protected final float _sum
protected long[][] _matrix
protected long _errors
protected long _rows
protected long _skippedRows
public static CMTask.CMFinal make()
public static CMTask.CMFinal make(hex.singlenoderf.CMTask.CM cm, SpeeDRFModel model, java.lang.String[] domain, long[] errorsPerTree, boolean computedOOB, float sum, long[][][] cms)
public java.lang.String[] domain()
public int dimension()
public long matrix(int i, int j)
public boolean valid()
public float mse()
public final void report()
public final void report(java.lang.StringBuilder sb)
public float classError()
public long rows()
public long skippedRows()
public hex.singlenoderf.CMTask.CM add(hex.singlenoderf.CMTask.CM cm)
public java.lang.String toString()
toString
in class java.lang.Object