Skip to content

Commit

Permalink
Handle required static shape in vip_reparametrize
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Apr 16, 2024
1 parent d072b94 commit 485dc21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymc_experimental/tests/model/transforms/test_autoreparam.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def test_multilevel():
# multilevel modelling
a = pm.Normal("a")
s = pm.HalfNormal("s")
a_g = pm.Normal("a_g", a, s, dims="level")
a_g = pm.Normal("a_g", a, s, shape=(2,), dims="level")
s_g = pm.HalfNormal("s_g")
a_ig = pm.Normal("a_ig", a_g, s_g, dims=("county", "level"))
a_ig = pm.Normal("a_ig", a_g, s_g, shape=(2, 2), dims=("county", "level"))

model_r, vip = vip_reparametrize(model, ["a_g", "a_ig"])
assert "a_g" in vip.get_lambda()
Expand Down

0 comments on commit 485dc21

Please sign in to comment.