File tree Expand file tree Collapse file tree 3 files changed +9
-55
lines changed Expand file tree Collapse file tree 3 files changed +9
-55
lines changed Original file line number Diff line number Diff line change 49
49
--ignore=pymc/tests/test_updates.py
50
50
--ignore=pymc/tests/test_gp.py
51
51
--ignore=pymc/tests/test_model.py
52
- --ignore=pymc/tests/test_model_func.py
53
52
--ignore=pymc/tests/test_ode.py
54
53
--ignore=pymc/tests/test_posdef_sym.py
55
54
--ignore=pymc/tests/test_quadpotential.py
82
81
pymc/tests/test_distributions_timeseries.py
83
82
pymc/tests/test_gp.py
84
83
pymc/tests/test_model.py
85
- pymc/tests/test_model_func.py
86
84
pymc/tests/test_model_graph.py
87
85
pymc/tests/test_ode.py
88
86
pymc/tests/test_posdef_sym.py
@@ -166,7 +164,6 @@ jobs:
166
164
pymc/tests/test_ode.py
167
165
- |
168
166
pymc/tests/test_model.py
169
- pymc/tests/test_model_func.py
170
167
pymc/tests/test_modelcontext.py
171
168
pymc/tests/test_model_graph.py
172
169
pymc/tests/test_pickling.py
Original file line number Diff line number Diff line change @@ -741,3 +741,12 @@ def test_model_d2logp(jacobian):
741
741
742
742
y_dlogp2 = m .compile_d2logp (vars = [y ], jacobian = jacobian )(state )
743
743
assert np .all (np .isclose (y_dlogp2 , expected_y_d2logp ))
744
+
745
+
746
+ def test_deterministic ():
747
+ with pm .Model () as model :
748
+ x = pm .Normal ("x" , 0 , 1 )
749
+ y = pm .Deterministic ("y" , x ** 2 )
750
+
751
+ assert model .y == y
752
+ assert model ["y" ] == y
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments