Пример #1
0
 def sample_from_activation(self, vmap):
     p = activation_functions.sigmoid(vmap[self] - vmap[self.flipped_units])
     return samplers.bernoulli(p)
Пример #2
0
 def sample_from_activation(self, vmap):
     p = activation_functions.sigmoid(vmap[self] - vmap[self.flipped_units])
     return samplers.bernoulli(p)
Пример #3
0
 def sample_from_activation(self, vmap):
     p = self.success_probability_from_activation(vmap)
     return samplers.bernoulli(p)
Пример #4
0
 def sample_from_activation(self, vmap):
     p = self.success_probability_from_activation(vmap)
     return samplers.bernoulli(p)