Exemplo n.º 1
0
 def sample_from_activation(self, vmap):
     rate = self.rate_from_activation(vmap)
     return samplers.truncated_exponential(rate)
Exemplo n.º 2
0
 def sample_from_activation(self, vmap):
     return samplers.truncated_exponential(
         -vmap[self])  # lambda = -activation!
Exemplo n.º 3
0
 def sample_from_activation(self, vmap):
     rate = self.rate_from_activation(vmap)
     return samplers.truncated_exponential(rate)
Exemplo n.º 4
0
 def sample_from_activation(self, vmap):
     return samplers.truncated_exponential(-vmap[self])  # lambda = -activation!