(self, X_batch, backward_grads_batch)
return grads
compute gradient for a mini batch
compute gradient for a mini batch
compute gradient for a mini batch
def _get_mini_batch_gradient(self, X_batch, backward_grads_batch):

        """
        compute gradient for a mini batch
        """
        grads = self.nn.get_weight_gradients(X_batch, backward_grads_batch)
        return grads
def _get_mini_batch_gradient ( self , X_batch , backward_grads_batch ) : grads = self . nn . get_weight_gradients ( X_batch , backward_grads_batch ) return grads