|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsr166y.ForkJoinTask<java.lang.Void>
jsr166y.CountedCompleter
water.H2O.H2OCountedCompleter
water.DTask
water.MRTask2<T>
hex.FrameTask<T>
hex.glm.GLMTask<T>
public abstract class GLMTask<T extends GLMTask<T>>
Base class for all GLM-related MRTask(2)s. Filters rows with NA(s), handles data-regularization of numeric columns on the fly, and performs on-the fly expansion of categoricals. Users should override processRow method and potentially reduce.
Nested Class Summary | |
---|---|
static class |
GLMTask.GLMIterationTask
One iteration of glm, computes weighted gram matrix and t(x)*y vector and t(y)*y scalar. |
Field Summary | |
---|---|
protected double[] |
_beta
|
protected GLMParams.CaseMode |
_caseMode
|
protected double |
_caseVal
|
Fields inherited from class hex.FrameTask |
---|
_catOffsets, _cats, _nums, _standardize |
Fields inherited from class water.MRTask2 |
---|
_fr, _fs, _hi, _left, _lo, _nleft, _nodes, _nrite, _outputFrame, _rite, _topLocal |
Fields inherited from class water.DTask |
---|
_cls, _eFromNode, _exception, _fname, _lineNum, _msg, _mth |
Constructor Summary | |
---|---|
protected |
GLMTask(GLMTask gt,
double[] beta)
|
|
GLMTask(Job job,
GLMParams glm,
double[] beta,
boolean standardize,
GLMParams.CaseMode cm,
double cv)
|
|
GLMTask(Job job,
GLMParams glm,
double[] beta,
boolean standardize,
GLMParams.CaseMode cm,
double cv,
int step,
int offset,
boolean complement)
|
Method Summary | |
---|---|
protected double |
computeEta(int ncats,
int[] cats,
double[] nums)
|
protected int |
diagN()
|
Methods inherited from class hex.FrameTask |
---|
adaptFrame, catOffsets, cats, chunkDone, chunkInit, dfork2, doIt, fullN, largestCat, map, normMul, normSub, nums, processRow, processRow, standardize |
Methods inherited from class water.MRTask2 |
---|
clone, closeLocal, compute2, dfork, dfork, dfork, dfork, dinvoke, doAll, doAll, doAll, doAll, getResult, map, map, map, map, map, map, map, map, map, map, map, onCompletion, onExceptionalCompletion, postGlobal, profString, reduce, reduce4, setupLocal, vecs |
Methods inherited from class water.DTask |
---|
copyOver, frozenType, getDException, hasException, logVerbose, newInstance, onAck, onAckAck, read, setException, toDocField, write, writeJSONFields |
Methods inherited from class water.H2O.H2OCountedCompleter |
---|
compute, priority |
Methods inherited from class jsr166y.CountedCompleter |
---|
addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryComplete |
Methods inherited from class jsr166y.ForkJoinTask |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final double[] _beta
protected final GLMParams.CaseMode _caseMode
protected final double _caseVal
Constructor Detail |
---|
public GLMTask(Job job, GLMParams glm, double[] beta, boolean standardize, GLMParams.CaseMode cm, double cv)
public GLMTask(Job job, GLMParams glm, double[] beta, boolean standardize, GLMParams.CaseMode cm, double cv, int step, int offset, boolean complement)
protected GLMTask(GLMTask gt, double[] beta)
Method Detail |
---|
protected final int diagN()
protected final double computeEta(int ncats, int[] cats, double[] nums)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |