protected class Model.BigScore extends CMetricScoringTask<Model.BigScore> implements Model.BigScorePredict, Model.BigScoreChunkPredict
DTask.DKeyTask<T extends DTask.DKeyTask,V extends Keyed>, DTask.RemoveCall| Modifier and Type | Field and Description |
|---|---|
boolean |
_computeMetrics |
protected java.lang.String[] |
_domain |
boolean |
_hasWeights |
Job |
_j |
boolean |
_makePreds |
ModelMetrics.MetricBuilder |
_mb
Output parameter: Metric builder
|
protected int |
_npredcols |
customMetricWs| Constructor and Description |
|---|
BigScore(java.lang.String[] domain,
int ncols,
double[] mean,
boolean testHasWeights,
boolean computeMetrics,
boolean makePreds,
Job j,
CFuncRef customMetricFunc) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Model.BigScoreChunkPredict |
initMap(Frame fr,
Chunk[] chks) |
void |
map(Chunk[] chks,
NewChunk[] cpreds) |
protected void |
postGlobal() |
void |
reduce(Model.BigScore bs)
Override to combine results from 'mrt' into 'this' MRTask.
|
double[] |
score0(Chunk[] chks,
double offset,
int row_in_chunk,
double[] tmp,
double[] preds) |
protected void |
setupLocal()
Override to do any remote initialization on the 1st remote instance of
this object, for initializing node-local shared data structures.
|
customMetricPerRow, getComputedCustomMetric, getFuncTypegetFuncClassLoader, getParentClassloaderappendables, 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, modifiesVolatileVecs, onCompletion, onExceptionalCompletion, outputFrame, outputFrame, outputFrame, profile, profString, selfcopyOver, getDException, hasException, logVerbose, onAck, onAckAck, setExceptionasBytes, clone, compute, compute1, currThrPriority, frozenType, icer, priority, read, readJSON, reloadFromBytes, write, writeJSON__tryComplete, addToPendingCount, 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 java.lang.String[] _domain
protected final int _npredcols
public final boolean _computeMetrics
public final boolean _hasWeights
public final boolean _makePreds
public final Job _j
public ModelMetrics.MetricBuilder _mb
protected void setupLocal()
MRTasksetupLocal in class CFuncTask<CMetricFunc,Model.BigScore>public void map(Chunk[] chks, NewChunk[] cpreds)
map in class MRTask<Model.BigScore>public double[] score0(Chunk[] chks, double offset, int row_in_chunk, double[] tmp, double[] preds)
score0 in interface Model.BigScoreChunkPredictpublic Model.BigScoreChunkPredict initMap(Frame fr, Chunk[] chks)
initMap in interface Model.BigScorePredictpublic void close()
close in interface Model.BigScoreChunkPredictclose in interface java.lang.AutoCloseablepublic void reduce(Model.BigScore bs)
MRTaskreduce in class CMetricScoringTask<Model.BigScore>protected void postGlobal()
postGlobal in class CMetricScoringTask<Model.BigScore>