public class ConfusionTask extends MRTask
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfusionTask.CMFinal |
static class |
ConfusionTask.CMJob |
| Modifier and Type | Field and Description |
|---|---|
ValueArray |
_data |
int |
_DATA_N |
int |
_MODEL_N |
int |
_N |
_fs, _is_local, _keys_cls, _eFromNode, _exception, _fname, _lineNum, _msg, _mth| Constructor and Description |
|---|
ConfusionTask()
Constructor for use by the serializers
|
| 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,
ValueArray.Column modelCol,
ValueArray.Column dataCol,
int[] modelEnumMapping,
int[] dataEnumMapping) |
static java.lang.String[] |
domain(ValueArray.Column modelCol,
ValueArray.Column dataCol) |
void |
init()
Once-per-remote invocation init.
|
Key |
keyForCM() |
static Key |
keyForCM(Key modelKey,
int msize,
Key datakey,
int classcol,
boolean computeOOB) |
static ConfusionTask.CMJob |
make(RFModel model,
int modelSize,
Key datakey,
int classcol,
double[] classWt,
boolean computeOOB) |
static ConfusionTask.CMJob |
make(RFModel model,
Key datakey,
int classcol,
double[] classWt,
boolean computeOOB)
Apply a model to a dataset to produce a Confusion Matrix.
|
void |
map(Key chunkKey)
A classic Map/Reduce style incremental computation of the confusion
matrix on a chunk of data.
|
void |
reduce(DRemoteTask drt)
Reduction combines the confusion matrices.
|
static void |
remove(RFModel model,
Key datakey,
int classcol,
boolean computeOOB) |
hi, lcompute, lo, lonCompletion, memOverheadPerChunk, onExceptionalCompletionalsoBlockFor, alsoBlockFor, clone, compute2, dfork, getFutures, invoke, invokeOnAllNodes, keys, onCompletion, reduceAlsoBlockcopyOver, dinvoke, frozenType, getDException, hasException, logVerbose, newInstance, onAck, onAckAck, read, setException, toDocField, write, writeJSONFieldscompute, priorityaddToPendingCount, 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 transient ValueArray _data
public transient int _N
public transient int _MODEL_N
public transient int _DATA_N
public Key keyForCM()
public static Key keyForCM(Key modelKey, int msize, Key datakey, int classcol, boolean computeOOB)
public static ConfusionTask.CMJob make(RFModel model, Key datakey, int classcol, double[] classWt, boolean computeOOB)
public static ConfusionTask.CMJob make(RFModel model, int modelSize, Key datakey, int classcol, double[] classWt, boolean computeOOB)
public void init()
public void map(Key chunkKey)
public void reduce(DRemoteTask drt)
reduce in class DRemoteTaskpublic static int alignEnumDomains(java.lang.String[] modelDomain,
java.lang.String[] dataDomain,
int[] modelMapping,
int[] dataMapping)
public static java.lang.String[] domain(ValueArray.Column modelCol, ValueArray.Column dataCol)
public static java.lang.String[] domain(int N,
ValueArray.Column modelCol,
ValueArray.Column dataCol,
int[] modelEnumMapping,
int[] dataEnumMapping)
public java.lang.String[] domain()
public final int dimension()