public abstract class DTreeScorer<T extends DTreeScorer<T>>
extends water.MRTask<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
_nclass |
protected int |
_ncols |
protected int |
_skip |
protected water.Key[][] |
_treeKeys |
protected CompressedTree[][] |
_trees |
| Constructor and Description |
|---|
DTreeScorer(int ncols,
int nclass,
int skip,
water.Key[][] treeKeys) |
| Modifier and Type | Method and Description |
|---|---|
water.fvec.Chunk |
chk_oobt(water.fvec.Chunk[] chks) |
water.fvec.Chunk |
chk_resp(water.fvec.Chunk[] chks) |
water.fvec.Chunk |
chk_tree(water.fvec.Chunk[] chks,
int c) |
protected int |
ntrees() |
protected void |
score0(double[] data,
double[] preds,
CompressedTree[] ts) |
static void |
scoreTree(double[] data,
double[] preds,
CompressedTree[] ts)
Score given tree on the row of data.
|
protected void |
setupLocal() |
appendables, asyncExec, asyncExec, asyncExec, asyncExec, asyncExecOnAllNodes, block, closeLocal, compute2, dfork, dfork, dfork, dfork, dinvoke, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAllNodes, getResult, isReleasable, map, map, map, map, map, map, map, map, map, map, map, map, map, onCompletion, onExceptionalCompletion, outputFrame, outputFrame, outputFrame, postGlobal, postLocal, priority, profString, reduce, self, setProfilecopyOver, getDException, hasException, logVerbose, onAck, onAckAck, setExceptionclone, compute, frozenType, icer, nextThrPriority, read_impl, read, readJSON_impl, readJSON, write_impl, write, writeJSON_impl, writeJSONaddToPendingCount, 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, tryUnforkprotected final int _ncols
protected final int _nclass
protected final int _skip
protected final water.Key[][] _treeKeys
protected transient CompressedTree[][] _trees
public DTreeScorer(int ncols,
int nclass,
int skip,
water.Key[][] treeKeys)
protected int ntrees()
protected final void setupLocal()
setupLocal in class water.MRTask<T extends DTreeScorer<T>>public final water.fvec.Chunk chk_oobt(water.fvec.Chunk[] chks)
public final water.fvec.Chunk chk_tree(water.fvec.Chunk[] chks,
int c)
public final water.fvec.Chunk chk_resp(water.fvec.Chunk[] chks)
protected void score0(double[] data,
double[] preds,
CompressedTree[] ts)
public static void scoreTree(double[] data,
double[] preds,
CompressedTree[] ts)
data - row of datapreds - array to hold resulting predictionts - a tree representation (single regression tree, or multi tree)