Class TrainingListener.BatchData

  • Enclosing interface:
    TrainingListener

    public static class TrainingListener.BatchData
    extends java.lang.Object
    A class to pass data from the batch into the training listeners.
    • Constructor Detail

      • BatchData

        public BatchData​(Batch batch,
                         java.util.Map<Device,​NDList> labels,
                         java.util.Map<Device,​NDList> predictions)
        Constructs a new TrainingListener.BatchData.
        Parameters:
        batch - the original batch
        labels - the labels for each device
        predictions - the predictions for each device
    • Method Detail

      • getBatch

        public Batch getBatch()
        Returns the original batch.
        Returns:
        the original batch
      • getLabels

        public java.util.Map<Device,​NDList> getLabels()
        Returns the labels for each device.
        Returns:
        the labels for each device
      • getPredictions

        public java.util.Map<Device,​NDList> getPredictions()
        Returns the predictions for each device.
        Returns:
        the predictions for each device