(self, X, grads)
compute and update gradients for all samples
compute and update gradients for all samples
compute and update gradients for all samples
def _batch_gradient_update(self, X, grads):
        """
        compute and update gradients for all samples
        """
        data = self.data_convertor.convert_data(X, grads)
        self.nn.train(data)
def _batch_gradient_update ( self , X , grads ) : data = self . data_convertor . convert_data ( X , grads ) self . nn . train ( data )