示例#1
0
文件: units.py 项目: OwaJawa/morb
 def sample_from_activation(self, vmap):
     p0 = self.probabilities_from_activation(vmap)
     s0 = samplers.multinomial(p0)
     s = s0[:, :, :-1] # chop off the last state (zero state)
     return s
示例#2
0
 def sample_from_activation(self, vmap):
     p0 = self.probabilities_from_activation(vmap)
     s0 = samplers.multinomial(p0)
     s = s0[:, :, :-1]  # chop off the last state (zero state)
     return s
示例#3
0
文件: units.py 项目: OwaJawa/morb
 def sample_from_activation(self, vmap):
     p = self.probabilities_from_activation(vmap)
     return samplers.multinomial(p)
示例#4
0
 def sample_from_activation(self, vmap):
     p = self.probabilities_from_activation(vmap)
     return samplers.multinomial(p)
示例#5
0
文件: units.py 项目: pbrakel/morb
 def sample_from_activation(self, vmap):
     p0 = activation_functions.softmax_with_zero(vmap[self])
     s0 = samplers.multinomial(p0)
     s = s0[:, :, :-1]  # chop off the last state (zero state)
     return s
示例#6
0
文件: units.py 项目: pbrakel/morb
 def sample_from_activation(self, vmap):
     p = activation_functions.softmax(vmap[self])
     return samplers.multinomial(p)
示例#7
0
文件: units.py 项目: pbrakel/morb
 def sample_from_activation(self, vmap):
     p0 = activation_functions.softmax_with_zero(vmap[self])
     s0 = samplers.multinomial(p0)
     s = s0[:, :, :-1]  # chop off the last state (zero state)
     return s
示例#8
0
文件: units.py 项目: pbrakel/morb
 def sample_from_activation(self, vmap):
     p = activation_functions.softmax(vmap[self])
     return samplers.multinomial(p)