public abstract static class GLMTask.GLMMultinomialGradientBaseTask extends water.MRTask<GLMTask.GLMMultinomialGradientBaseTask>
Modifier and Type | Field and Description |
---|---|
double[][] |
_gradient |
Constructor and Description |
---|
GLMMultinomialGradientBaseTask(water.Job job,
DataInfo dinfo,
double lambda,
double[][] beta,
double reg) |
GLMMultinomialGradientBaseTask(water.Job job,
DataInfo dinfo,
double lambda,
double[][] beta,
GLMModel.GLMParameters glmp) |
GLMMultinomialGradientBaseTask(water.Job job,
DataInfo dinfo,
double lambda,
double[][] beta,
GLMModel.GLMParameters glmp,
double[][][] penaltyMat,
int[][] gamCols) |
Modifier and Type | Method and Description |
---|---|
abstract void |
calMultipliersNGradients(double[][] etas,
double[][] etasOffset,
double[] ws,
double[] vals,
int[] ids,
water.fvec.Chunk response,
water.fvec.Chunk[] chks,
int M,
int P,
int numStart) |
void |
computeCategoricalEtas(water.fvec.Chunk[] chks,
double[][] etas,
double[] vals,
int[] ids) |
void |
computeCategoricalGrads(water.fvec.Chunk[] chks,
double[][] etas,
double[] vals,
int[] ids) |
void |
computeNumericEtas(water.fvec.Chunk[] chks,
double[][] etas,
double[] vals,
int[] ids) |
void |
computeNumericGrads(water.fvec.Chunk[] chks,
double[][] etas,
double[] vals,
int[] ids) |
double[] |
gradient()
This method changes the _gradient that is coeffPerClss by number of classes back to number of classes by
coeffPerClass.
|
void |
map(water.fvec.Chunk[] chks) |
void |
postGlobal() |
void |
reduce(GLMTask.GLMMultinomialGradientBaseTask gmgt) |
appendables, asyncExecOnAllNodes, block, closeLocal, compute2, dfork, dfork, dfork, dfork, dfork, dinvoke, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAllNodes, getResult, getResult, isReleasable, map, map, map, map, map, map, map, map, map, map, map, modifiesVolatileVecs, onCompletion, onExceptionalCompletion, outputFrame, outputFrame, outputFrame, profile, profString, self, setupLocal, withPostMapAction
copyOver, getDException, hasException, logVerbose, onAck, onAckAck, setException
asBytes, clone, compute, compute1, currThrPriority, frozenType, icer, priority, read, readJSON, reloadFromBytes, write, writeJSON
__tryComplete, addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryComplete
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, fork, get, 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 GLMMultinomialGradientBaseTask(water.Job job, DataInfo dinfo, double lambda, double[][] beta, double reg)
job
- dinfo
- lambda
- beta
- coefficients as 2D array [P][K]reg
- public GLMMultinomialGradientBaseTask(water.Job job, DataInfo dinfo, double lambda, double[][] beta, GLMModel.GLMParameters glmp)
public GLMMultinomialGradientBaseTask(water.Job job, DataInfo dinfo, double lambda, double[][] beta, GLMModel.GLMParameters glmp, double[][][] penaltyMat, int[][] gamCols)
public final void computeCategoricalEtas(water.fvec.Chunk[] chks, double[][] etas, double[] vals, int[] ids)
public final void computeCategoricalGrads(water.fvec.Chunk[] chks, double[][] etas, double[] vals, int[] ids)
public final void computeNumericEtas(water.fvec.Chunk[] chks, double[][] etas, double[] vals, int[] ids)
public final void computeNumericGrads(water.fvec.Chunk[] chks, double[][] etas, double[] vals, int[] ids)
public void map(water.fvec.Chunk[] chks)
map
in class water.MRTask<GLMTask.GLMMultinomialGradientBaseTask>
public abstract void calMultipliersNGradients(double[][] etas, double[][] etasOffset, double[] ws, double[] vals, int[] ids, water.fvec.Chunk response, water.fvec.Chunk[] chks, int M, int P, int numStart)
public void reduce(GLMTask.GLMMultinomialGradientBaseTask gmgt)
reduce
in class water.MRTask<GLMTask.GLMMultinomialGradientBaseTask>
public void postGlobal()
postGlobal
in class water.MRTask<GLMTask.GLMMultinomialGradientBaseTask>
public double[] gradient()