public static class GLMTask.GLMIterationTask extends GLMTask<GLMTask.GLMIterationTask>
GLMTask.GLMIterationTask, GLMTask.GLMLineSearchTaskFrameTask.DataInfoDTask.DKeyTask<T extends DTask.DKeyTask,V extends Iced>| Modifier and Type | Field and Description |
|---|---|
protected double[] |
_grad |
protected Gram |
_gram |
protected double |
_reg |
static int |
N_THRESHOLDS |
_dinfo, _jobKey, _shuffle, _useFraction| Constructor and Description |
|---|
GLMTask.GLMIterationTask(Key jobKey,
FrameTask.DataInfo dinfo,
GLMParams glm,
boolean computeGram,
boolean validate,
boolean computeGradient,
double[] beta,
double ymu,
double reg,
float[] thresholds,
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.
|
double[] |
gradient(double alpha,
double lambda) |
void |
postGlobal() |
void |
processRow(long gid,
double[] nums,
int ncats,
int[] cats,
double[] responses)
Method to process one row of the data for GLM functions.
|
void |
reduce(GLMTask.GLMIterationTask git)
Override to combine results from 'mrt' into 'this' MRTask2.
|
computeEtadfork, map, normMul, normRespMul, normRespSub, normSub, processRow, skipMissingasyncExec, 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, 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, tryUnforkprotected Gram _gram
protected double[] _grad
protected final double _reg
public static final int N_THRESHOLDS
public GLMTask.GLMIterationTask(Key jobKey, FrameTask.DataInfo dinfo, GLMParams glm, boolean computeGram, boolean validate, boolean computeGradient, double[] beta, double ymu, double reg, float[] thresholds, H2O.H2OCountedCompleter cmp)
public void processRow(long gid,
double[] nums,
int ncats,
int[] cats,
double[] responses)
FrameTaskprocessRow in class FrameTask<GLMTask.GLMIterationTask>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.responses - - numeric value for the responseprotected void chunkInit()
FrameTaskchunkInit in class FrameTask<GLMTask.GLMIterationTask>protected void chunkDone(long n)
FrameTaskchunkDone in class FrameTask<GLMTask.GLMIterationTask>n - Number of processed rowspublic void reduce(GLMTask.GLMIterationTask git)
MRTask2reduce in class MRTask2<GLMTask.GLMIterationTask>public void postGlobal()
postGlobal in class MRTask2<GLMTask.GLMIterationTask>public double[] gradient(double alpha,
double lambda)