public class DeepLearningTask2 extends water.MRTask<DeepLearningTask2>
Constructor and Description |
---|
DeepLearningTask2(water.Key jobKey,
water.fvec.Frame train,
DeepLearningModelInfo model_info,
float sync_fraction,
int iteration)
Construct a DeepLearningTask2 where every node trains on the entire training dataset
|
Modifier and Type | Method and Description |
---|---|
DeepLearningModelInfo |
model_info()
Returns the aggregated DeepLearning model that was trained by all nodes (over all the training data)
|
protected void |
postGlobal()
Finish up the work after all nodes have reduced their models via the above reduce() method.
|
void |
reduce(DeepLearningTask2 drt)
Reduce between worker nodes, with network traffic (if greater than 1 nodes)
After all reduce()'s are done, postGlobal() will be called
|
void |
setupLocal()
Do the local computation: Perform one DeepLearningTask (with run_local=true) iteration.
|
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
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, 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 DeepLearningTask2(water.Key jobKey, water.fvec.Frame train, DeepLearningModelInfo model_info, float sync_fraction, int iteration)
jobKey
- Job IDtrain
- Frame containing training datamodel_info
- Initial DeepLearningModelInfo (weights + biases)sync_fraction
- Fraction of the training data to use for one SGD iterationpublic DeepLearningModelInfo model_info()
public void setupLocal()
setupLocal
in class water.MRTask<DeepLearningTask2>
public void reduce(DeepLearningTask2 drt)
reduce
in class water.MRTask<DeepLearningTask2>
drt
- task to reduceprotected void postGlobal()
postGlobal
in class water.MRTask<DeepLearningTask2>