public class CMTask extends MRTask2<CMTask>
Modifier and Type | Class and Description |
---|---|
static class |
CMTask.CMFinal |
Modifier and Type | Field and Description |
---|---|
int |
_classcol |
double[] |
_classWt |
long[][][] |
_cms |
boolean |
_computeOOB |
Frame |
_data |
Key |
_datakey |
long[] |
_errorsPerTree |
hex.singlenoderf.CMTask.CM[] |
_localMatrices |
hex.singlenoderf.CMTask.CM |
_matrix |
SpeeDRFModel |
_model |
int[] |
_modelDataMap |
Key |
_modelKey |
int |
_N |
int[] |
_oobs |
float |
_sum |
int |
_treesUsed |
VarImp |
_varimp |
_appendables, _fr, _fs, _hi, _left, _lo, _nhi, _nleft, _nrite, _nxx, _rite, _t0, _topLocal
_cls, _eFromNode, _exception, _fname, _lineNum, _msg, _mth
Constructor and Description |
---|
CMTask(SpeeDRFModel model,
int treesToUse,
double[] classWt,
boolean computeOOB)
Confusion matrix
|
Modifier and Type | Method and Description |
---|---|
static int |
alignEnumDomains(java.lang.String[] modelDomain,
java.lang.String[] dataDomain,
int[] modelMapping,
int[] dataMapping)
Merge model and data predictor domain to produce domain for CM.
|
static float[] |
computeVarImpSD(long[][] vote_diffs) |
int |
dimension()
Return number of classes - in fact dimension of CM.
|
java.lang.String[] |
domain()
Compute confusion matrix domain based on model and data key.
|
static java.lang.String[] |
domain(int N,
Vec modelCol,
Vec dataCol,
int[] modelEnumMapping,
int[] dataEnumMapping) |
static java.lang.String[] |
domain(Vec modelCol,
Vec dataCol) |
void |
init() |
void |
map(Chunk[] chks)
Override with your map implementation.
|
void |
reduce(CMTask drt)
Reduction combines the confusion matrices.
|
asyncExec, asyncExec, asyncExec, block, clone, closeLocal, compute2, dfork, dfork, dfork, dfork, dinvoke, doAll, doAll, doAll, doAll, doAll, doAll, exec, exec, exec, getResult, isReleasable, map, map, map, map, map, map, map, map, map, map, map, onCompletion, onExceptionalCompletion, outputFrame, outputFrame, outputFrame, postGlobal, priority, profString, reduce4, setupLocal, vecs
copyOver, frozenType, getDException, hasException, logVerbose, newInstance, onAck, onAckAck, read, setException, toDocField, write, writeJSONFields
compute
addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryComplete
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
public double[] _classWt
public boolean _computeOOB
public int _treesUsed
public Key _modelKey
public Key _datakey
public int _classcol
public hex.singlenoderf.CMTask.CM _matrix
public float _sum
public hex.singlenoderf.CMTask.CM[] _localMatrices
public long[] _errorsPerTree
public SpeeDRFModel _model
public int[] _modelDataMap
public Frame _data
public int _N
public long[][][] _cms
public VarImp _varimp
public int[] _oobs
public CMTask(SpeeDRFModel model, int treesToUse, double[] classWt, boolean computeOOB)
model
- the ensemble used to classifypublic void init()
public void map(Chunk[] chks)
MRTask2
public static float[] computeVarImpSD(long[][] vote_diffs)
public void reduce(CMTask drt)
public static int alignEnumDomains(java.lang.String[] modelDomain, java.lang.String[] dataDomain, int[] modelMapping, int[] dataMapping)
public static java.lang.String[] domain(int N, Vec modelCol, Vec dataCol, int[] modelEnumMapping, int[] dataEnumMapping)
public java.lang.String[] domain()
public final int dimension()