public static class ConfusionTask.CMFinal extends Iced
Modifier and Type | Field and Description |
---|---|
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 Key |
_rfModelKey |
protected long |
_rows
Number of rows used for building the matrix.
|
protected long |
_skippedRows
Number of skipped rows.
|
protected boolean |
_valid |
Modifier and Type | Method and Description |
---|---|
hex.rf.ConfusionTask.CM |
add(hex.rf.ConfusionTask.CM cm)
Add a confusion matrix.
|
float |
classError()
Domain - names of columns and rows
|
int |
dimension() |
java.lang.String[] |
domain() |
static ConfusionTask.CMFinal |
make()
Make non-valid confusion matrix
|
static ConfusionTask.CMFinal |
make(hex.rf.ConfusionTask.CM cm,
RFModel model,
java.lang.String[] domain,
long[] errorsPerTree,
boolean computedOOB)
Create a new confusion matrix.
|
long |
matrix(int i,
int j) |
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
|
static void |
updateDKV(Key key,
ConfusionTask.CMFinal cm) |
boolean |
valid() |
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
protected final Key _rfModelKey
protected final java.lang.String[] _domain
protected final long[] _errorsPerTree
protected final boolean _computedOOB
protected boolean _valid
protected long[][] _matrix
protected long _errors
protected long _rows
protected long _skippedRows
public static final ConfusionTask.CMFinal make()
public static final ConfusionTask.CMFinal make(hex.rf.ConfusionTask.CM cm, RFModel model, java.lang.String[] domain, long[] errorsPerTree, boolean computedOOB)
public java.lang.String[] domain()
public int dimension()
public long matrix(int i, int j)
public boolean valid()
public final void report()
public final void report(java.lang.StringBuilder sb)
public static void updateDKV(Key key, ConfusionTask.CMFinal cm)
public float classError()
public long rows()
public long skippedRows()
public hex.rf.ConfusionTask.CM add(hex.rf.ConfusionTask.CM cm)
public java.lang.String toString()
toString
in class java.lang.Object