'Derivative of the discriminator cost wrt. y_noise.'

def bprop_noise(self, y_noise):

    if (self.func in ['original', 'modified']):
        return (self.scale / (1.0 - y_noise))
    elif (self.func == 'wasserstein'):
        return ((- self.scale) * self.one_buf)
