public interface Trainer extends Runnable
ParallelWrapper
for handling training in multi core situations.| Modifier and Type | Method and Description |
|---|---|
boolean |
averagingRequired()
This method returns TRUE if this Trainer implementation assumes periodic aver
|
void |
feedDataSet(org.nd4j.linalg.dataset.api.DataSet dataSet,
long etlTime)
Train on a
DataSet |
void |
feedMultiDataSet(org.nd4j.linalg.dataset.api.MultiDataSet dataSet,
long etlTime)
Train on a
MultiDataSet |
org.deeplearning4j.nn.api.Model |
getModel()
THe current model for the trainer
|
boolean |
isRunning() |
void |
setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler handler)
Set the
Thread.UncaughtExceptionHandler
for this Trainer |
void |
shutdown()
Shutdown this worker
|
void |
start()
Start this trainer
|
void |
updateModel(org.deeplearning4j.nn.api.Model model)
Update the current
Model
for the worker |
void |
waitTillRunning()
Block the main thread
till the trainer is up and running.
|
void feedMultiDataSet(@NonNull
org.nd4j.linalg.dataset.api.MultiDataSet dataSet,
long etlTime)
MultiDataSetdataSet - the data set to train onvoid feedDataSet(@NonNull
org.nd4j.linalg.dataset.api.DataSet dataSet,
long etlTime)
DataSetdataSet - the data set to train onorg.deeplearning4j.nn.api.Model getModel()
Model
for the workervoid updateModel(@NonNull
org.deeplearning4j.nn.api.Model model)
Model
for the workermodel - the new model for this workerboolean isRunning()
void shutdown()
void waitTillRunning()
void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler handler)
Thread.UncaughtExceptionHandler
for this Trainerhandler - the handler for uncaught errorsvoid start()
boolean averagingRequired()
Copyright © 2017. All rights reserved.