예제 #1
0
 def noised():
   stddev = np.sqrt(self.rate / (1.0 - self.rate))
   return inputs * K.random_normal(
       shape=K.shape(inputs), mean=1.0, stddev=stddev)
예제 #2
0
 def noised():
   return inputs + K.random_normal(
       shape=K.shape(inputs), mean=0., stddev=self.stddev)
예제 #3
0
 def noised():
   return inputs + K.random_normal(
       shape=K.shape(inputs), mean=0., stddev=self.stddev)
예제 #4
0
 def noised():
   stddev = np.sqrt(self.rate / (1.0 - self.rate))
   return inputs * K.random_normal(
       shape=K.shape(inputs), mean=1.0, stddev=stddev)