Skip to content

Commit d322f75

Browse files
michaelosthegetwiecki
authored andcommitted
Upgrade Aesara and Aeppl dependencies
1 parent bc0ec61 commit d322f75

14 files changed

+28
-32
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ repos:
2626
- types-filelock
2727
- types-setuptools
2828
- arviz
29-
- aesara==2.5.1
30-
- aeppl==0.0.27
29+
- aesara==2.6.2
30+
- aeppl==0.0.28
3131
always_run: true
3232
require_serial: true
3333
pass_filenames: false

conda-envs/environment-dev-py37.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7-
- aeppl=0.0.27
8-
- aesara=2.5.1
7+
- aeppl=0.0.28
8+
- aesara=2.6.2
99
- arviz>=0.12.0
1010
- blas
1111
- cachetools>=4.2.1

conda-envs/environment-dev-py38.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7-
- aeppl=0.0.27
8-
- aesara=2.5.1
7+
- aeppl=0.0.28
8+
- aesara=2.6.2
99
- arviz>=0.12.0
1010
- blas
1111
- cachetools>=4.2.1

conda-envs/environment-dev-py39.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7-
- aeppl=0.0.27
8-
- aesara=2.5.1
7+
- aeppl=0.0.28
8+
- aesara=2.6.2
99
- arviz>=0.12.0
1010
- blas
1111
- cachetools>=4.2.1

conda-envs/environment-test-py37.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7-
- aeppl=0.0.27
8-
- aesara=2.5.1
7+
- aeppl=0.0.28
8+
- aesara=2.6.2
99
- arviz>=0.12.0
1010
- blas
1111
- cachetools>=4.2.1

conda-envs/environment-test-py38.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7-
- aeppl=0.0.27
8-
- aesara=2.5.1
7+
- aeppl=0.0.28
8+
- aesara=2.6.2
99
- arviz>=0.12.0
1010
- blas
1111
- cachetools>=4.2.1

conda-envs/environment-test-py39.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ channels:
44
- conda-forge
55
- defaults
66
dependencies:
7-
- aeppl=0.0.27
8-
- aesara=2.5.1
7+
- aeppl=0.0.28
8+
- aesara=2.6.2
99
- arviz>=0.12.0
1010
- blas
1111
- cachetools>=4.2.1

conda-envs/windows-environment-dev-py38.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ channels:
44
- defaults
55
dependencies:
66
# base dependencies (see install guide for Windows)
7-
- aeppl=0.0.27
8-
- aesara=2.5.1
7+
- aeppl=0.0.28
8+
- aesara=2.6.2
99
- arviz>=0.12.0
1010
- blas
1111
- cachetools>=4.2.1

conda-envs/windows-environment-test-py38.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ channels:
44
- defaults
55
dependencies:
66
# base dependencies (see install guide for Windows)
7-
- aeppl=0.0.27
8-
- aesara=2.5.1
7+
- aeppl=0.0.28
8+
- aesara=2.6.2
99
- arviz>=0.12.0
1010
- blas
1111
- cachetools>=4.2.1

pymc/distributions/mixture.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,7 @@ def rv_op(cls, weights, *components, size=None, rngs=None):
274274

275275
# Index components and squeeze mixture dimension
276276
mix_out_ = at.take_along_axis(stacked_components_, mix_indexes_padded_, axis=mix_axis)
277-
# There is a Aesara bug in squeeze with negative axis
278-
# https://github.com/aesara-devs/aesara/issues/830
279-
# this is equivalent to np.squeeze(mix_out_, axis=mix_axis)
280-
mix_out_ = at.squeeze(mix_out_, axis=mix_out_.ndim + mix_axis)
277+
mix_out_ = at.squeeze(mix_out_, axis=mix_axis)
281278

282279
# Output mix_indexes rng update so that it can be updated in place
283280
mix_indexes_rng_next_ = mix_indexes_.owner.outputs[0]
@@ -458,7 +455,7 @@ def marginal_mixture_moment(op, rv, rng, weights, *components):
458455
transforms.LogExpM1,
459456
transforms.LogOddsTransform,
460457
transforms.Ordered,
461-
transforms.Simplex,
458+
transforms.SimplexTransform,
462459
transforms.SumTo1,
463460
)
464461

pymc/distributions/transforms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
LogOddsTransform,
2323
LogTransform,
2424
RVTransform,
25-
Simplex,
25+
SimplexTransform,
2626
)
2727
from aesara.graph import Op
2828
from aesara.tensor import TensorVariable
@@ -174,9 +174,9 @@ def log_jac_det(self, value, *inputs):
174174
return det
175175

176176

177-
simplex = Simplex()
177+
simplex = SimplexTransform()
178178
simplex.__doc__ = """
179-
Instantiation of :class:`aeppl.transforms.Simplex`
179+
Instantiation of :class:`aeppl.transforms.SimplexTransform`
180180
for use in the ``transform`` argument of a random variable."""
181181

182182
logodds = LogOddsTransform()

pymc/tests/test_mixture.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
import pytest
2020
import scipy.stats as st
2121

22-
from aeppl.transforms import IntervalTransform, LogTransform
23-
from aeppl.transforms import Simplex as SimplexTransform
22+
from aeppl.transforms import IntervalTransform, LogTransform, SimplexTransform
2423
from aesara import tensor as at
2524
from aesara.tensor import TensorVariable
2625
from aesara.tensor.random.op import RandomVariable

requirements-dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is auto-generated by scripts/generate_pip_deps_from_conda.py, do not modify.
22
# See that file for comments about the need/usage of each dependency.
33

4-
aeppl==0.0.27
5-
aesara==2.5.1
4+
aeppl==0.0.28
5+
aesara==2.6.2
66
arviz>=0.12.0
77
cachetools>=4.2.1
88
cloudpickle

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
aeppl==0.0.27
2-
aesara==2.5.1
1+
aeppl==0.0.28
2+
aesara==2.6.2
33
arviz>=0.12.0
44
cachetools>=4.2.1
55
cloudpickle

0 commit comments

Comments
 (0)