(self, y_data)
Derivative of the discriminator cost wrt. y_data.
Derivative of the discriminator cost wrt. y_data.
Derivative of the discriminator cost wrt . y_data .
def bprop_data(self, y_data):
        """
        Derivative of the discriminator cost wrt. y_data.
        """
        if self.func in ['original', 'modified']:
            return self.scale * (-1. / y_data)
        elif self.func == 'wasserstein':
            return self.scale * self.one_buf
def bprop_data ( self , y_data ) : if self . func in [ 'original' , 'modified' ] : return self . scale * ( - 1. / y_data ) elif self . func == 'wasserstein' : return self . scale * self . one_buf