public final class ParallelTrain
extends java.lang.Object
| Constructor and Description |
|---|
ParallelTrain(Device[] devices)
Build a ParallelTrain for the given devices.
|
| Modifier and Type | Method and Description |
|---|---|
void |
trainBatch(Trainer trainer,
Batch batch)
Trains the model with one iteration of the given
Batch of data. |
public ParallelTrain(Device[] devices)
devices - the devices to train on.public void trainBatch(Trainer trainer, Batch batch)
Batch of data.trainer - the trainer to validate the batch withbatch - a Batch that contains data, and its respective labelsjava.lang.IllegalArgumentException - if the batch engine does not match the trainer engine