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 |
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 |
float |
_sum |
int |
_treesUsed |
_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.
|
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, getResult, isReleasable, map, map, map, map, map, map, map, map, map, map, map, onCompletion, onExceptionalCompletion, outputFrame, outputFrame, outputFrame, postGlobal, priority, profString, reduce4, setupLocal, vecscopyOver, frozenType, getDException, hasException, logVerbose, newInstance, onAck, onAckAck, read, setException, toDocField, write, writeJSONFieldscomputeaddToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryCompleteadapt, 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, tryUnforkpublic 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 CMTask(SpeeDRFModel model, int treesToUse, double[] classWt, boolean computeOOB)
model - the ensemble used to classifypublic void init()
public void map(Chunk[] chks)
MRTask2public 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()