(self, callback_data, model, epoch, minibatch)
Called when minibatch is about to end

        Arguments:
            callback_data (HDF5 dataset): shared data between callbacks
            model (Model): model object
            epoch (int): index of current epoch
            minibatch (int): index of minibatch that is ending
Called when minibatch is about to end
Called when minibatch is about to end
def on_minibatch_end(self, callback_data, model, epoch, minibatch):
        """
        Called when minibatch is about to end

        Arguments:
            callback_data (HDF5 dataset): shared data between callbacks
            model (Model): model object
            epoch (int): index of current epoch
            minibatch (int): index of minibatch that is ending
        """
        mbstart = callback_data['time_markers/minibatch'][epoch - 1] if epoch > 0 else 0
        train_cost = callback_data['cost/train'][mbstart + minibatch]
        logger.info("Epoch %d Minibatch %d complete. Train cost: %f", epoch, minibatch, train_cost)
def on_minibatch_end ( self , callback_data , model , epoch , minibatch ) : mbstart = callback_data [ 'time_markers/minibatch' ] [ epoch - 1 ] if epoch > 0 else 0 train_cost = callback_data [ 'cost/train' ] [ mbstart + minibatch ] logger . info ( "Epoch %d Minibatch %d complete. Train cost: %f" , epoch , minibatch , train_cost )