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