Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for new valued/bound variables in AePPL #91

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions aemcmc/rewriting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from functools import wraps
from typing import Callable, Dict, Iterable, List, Optional, Sequence, Set, Tuple, Union

from aeppl.rewriting import PreserveRVMappings
from aeppl.rewriting import MeasurableConversionTracker
from aesara.compile.builders import OpFromGraph
from aesara.compile.mode import optdb
from aesara.graph.basic import Apply, Variable, clone_replace, io_toposort
Expand Down Expand Up @@ -84,7 +84,7 @@ def construct_ir_fgraph(
memo=memo,
copy_orphans=False,
copy_inputs=False,
features=[ShapeFeature(), PreserveRVMappings(obs_rvs_to_values)],
features=[ShapeFeature(), MeasurableConversionTracker()],
)

# Update `obs_rvs_to_values` so that it uses the new cloned variables
Expand Down
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dependencies:
- numpy>=1.18.1
- scipy>=1.4.0
- aesara>=2.8.3
- aeppl>=0.0.40
- aehmc>0.0.10
- aeppl>=0.1.0
- aehmc>=0.0.10
- polyagamma>=1.3.2
- cons
- logical-unification
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def get_versions():
"numpy>=1.18.1",
"scipy>=1.4.0",
"aesara>=2.8.3",
"aeppl>=0.0.40",
"aehmc>0.0.10",
"aeppl>=0.1.0",
"aehmc>=0.0.10",
"polyagamma>=1.3.2",
"cons",
"logical-unification",
Expand Down