public abstract class FrameTask<T extends FrameTask<T>> extends MRTask2<T>
Modifier and Type | Class and Description |
---|---|
static class |
FrameTask.DataInfo |
DTask.DKeyTask<T extends DTask.DKeyTask,V extends Iced>
Modifier and Type | Field and Description |
---|---|
FrameTask.DataInfo |
_dinfo |
protected Key |
_jobKey |
protected boolean |
_shuffle |
protected float |
_useFraction |
Modifier | Constructor and Description |
---|---|
protected |
FrameTask(FrameTask ft) |
|
FrameTask(Key jobKey,
FrameTask.DataInfo dinfo) |
|
FrameTask(Key jobKey,
FrameTask.DataInfo dinfo,
H2O.H2OCountedCompleter cmp) |
Modifier and Type | Method and Description |
---|---|
protected void |
chunkDone(long n)
Override this to do post-chunk processing work.
|
protected void |
chunkInit()
Override this to initialize at the beginning of chunk processing.
|
T |
dfork(Frame fr) |
void |
map(Chunk[] chunks,
NewChunk[] outputs)
Extracts the values, applies standardization/normalization to numerics, adds appropriate offsets to categoricals,
and adapts response according to the CaseMode/CaseValue if set.
|
double[] |
normMul() |
double[] |
normRespMul() |
double[] |
normRespSub() |
double[] |
normSub() |
protected void |
processRow(long gid,
double[] nums,
int ncats,
int[] cats,
double[] response)
Method to process one row of the data for GLM functions.
|
protected void |
processRow(long gid,
double[] nums,
int ncats,
int[] cats,
double[] response,
NewChunk[] outputs) |
protected boolean |
skipMissing() |
asyncExec, asyncExec, asyncExec, block, clone, closeLocal, compute2, 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, reduce, 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 final FrameTask.DataInfo _dinfo
protected final Key _jobKey
protected float _useFraction
protected boolean _shuffle
public FrameTask(Key jobKey, FrameTask.DataInfo dinfo)
public FrameTask(Key jobKey, FrameTask.DataInfo dinfo, H2O.H2OCountedCompleter cmp)
protected FrameTask(FrameTask ft)
protected boolean skipMissing()
public final double[] normMul()
public final double[] normSub()
public final double[] normRespMul()
public final double[] normRespSub()
protected void processRow(long gid, double[] nums, int ncats, int[] cats, double[] response)
gid
- - global id of this row, in [0,_adaptedFrame.numRows())nums
- - numeric values of this rowncats
- - number of passed (non-zero) categoricalscats
- - indexes of categoricals into the expanded beta-vector.response
- - numeric value for the responseprotected void processRow(long gid, double[] nums, int ncats, int[] cats, double[] response, NewChunk[] outputs)
protected void chunkInit()
protected void chunkDone(long n)
n
- Number of processed rows