Exemplo n.º 1
0
 def simple_model():
     norm = yield dist.Normal("n", 0, 1)
     return norm
Exemplo n.º 2
0
 def complex_model():
     norm = yield dist.Normal("n", 0, 1)
     result = yield nested_model(norm, name="a")
     return result
Exemplo n.º 3
0
 def model():
     yield None
     yield dist.Normal("n", 0, 1)
Exemplo n.º 4
0
 def model():
     yield dist.Normal("n1", np.zeros(10), np.ones(10))
     yield dist.Normal("n2", np.zeros(3), np.ones(3))
Exemplo n.º 5
0
 def model():
     norm = yield dist.Normal("norm", 0, 1)
     abs_norm = yield dist.Deterministic("abs_norm", tf.abs(norm))
     sine_norm = yield dist.Deterministic("sine_norm", tf.sin(norm))
     norm_copy = yield dist.Deterministic("norm_copy", norm)
     obs = yield dist.Normal("obs", 0, abs_norm)