Package ai.djl.training.listener
Class TrainingListener.BatchData
java.lang.Object
ai.djl.training.listener.TrainingListener.BatchData
- Enclosing interface:
- TrainingListener
A class to pass data from the batch into the training listeners.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BatchData
Constructs a newTrainingListener.BatchData.- Parameters:
batch- the original batchlabels- the labels for each devicepredictions- the predictions for each device
-
-
Method Details
-
getBatch
Returns the original batch.- Returns:
- the original batch
-
getLabels
Returns the labels for each device.- Returns:
- the labels for each device
-
getPredictions
Returns the predictions for each device.- Returns:
- the predictions for each device
-