Skip to content

Commit 64b0e50

Browse files
Updates for new Aesara deprecations and AePPL version
1 parent 4f4ca7c commit 64b0e50

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

aemcmc/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def invgamma_exponential(invgamma_expr, invexponential_expr):
113113
size=size_lv,
114114
dtype=dtype_lv,
115115
)
116-
invexponential_et = etuple(at.true_div, at.as_tensor(1.0), exponential_et)
116+
invexponential_et = etuple(at.true_divide, at.as_tensor(1.0), exponential_et)
117117

118118
return lall(
119119
eq(invgamma_expr, invgamma_et), eq(invexponential_expr, invexponential_et)

environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ dependencies:
1111
- compilers
1212
- numpy>=1.18.1
1313
- scipy>=1.4.0
14-
- aesara>=2.8.3
15-
- aeppl>=0.1.0
14+
- aesara>=2.8.11
15+
- aeppl>=0.1.2
1616
- aehmc>=0.0.10
1717
- polyagamma>=1.3.2
1818
- cons

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def get_versions():
3838
install_requires=[
3939
"numpy>=1.18.1",
4040
"scipy>=1.4.0",
41-
"aesara>=2.8.3",
42-
"aeppl>=0.1.0",
41+
"aesara>=2.8.11",
42+
"aeppl>=0.1.2",
4343
"aehmc>=0.0.10",
4444
"polyagamma>=1.3.2",
4545
"cons",

tests/test_basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ def test_nuts_with_closed_form():
145145
assert beta_rv in sampler.sample_steps
146146

147147

148-
@pytest.mark.xfail(reason="An `OpFromGraph` fix is needed to remove extra updates")
149148
def test_create_gibbs():
150149
srng = RandomStream(0)
151150

tests/test_conjugates.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def test_gamma_poisson_conjugate_contract():
3131
q_lv = var()
3232
(posterior_expr,) = run(1, q_lv, gamma_poisson_conjugateo(y_vv, Y_rv, q_lv))
3333
posterior = eval_if_etuple(posterior_expr)
34-
aesara.dprint(posterior)
3534

3635
assert isinstance(posterior.owner.op, type(at.random.gamma))
3736

tests/test_rewriting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def test_SubsumingElemwise_constant_inputs():
119119
srng = at.random.RandomStream(0)
120120

121121
s = at.lscalar("s")
122-
# The `1` is the constant input to a `true_div` `Elemwise` that should be
122+
# The `1` is the constant input to a `true_divide` `Elemwise` that should be
123123
# "subsumed"
124124
Z = srng.exponential(1, size=s, name="Z")
125125
mu = 1 / Z

0 commit comments

Comments
 (0)