Skip to content

Commit

Permalink
Move cut posterior handlers to robust module (#549)
Browse files Browse the repository at this point in the history
* Move cut posterior handlers to robust module

* Update test_handlers_cut.py
  • Loading branch information
eb8680 authored Jul 16, 2024
1 parent 730eb9b commit 8ba2f2c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/source/dr_learner.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"import pyro.distributions as dist\n",
"from pyro.infer.autoguide import AutoNormal\n",
"from chirho.indexed.handlers import IndexPlatesMessenger\n",
"from chirho.observational.handlers.cut import SingleStageCut\n",
"from chirho.robust.handlers.cut import SingleStageCut\n",
"from pyro.infer import Predictive\n",
"\n",
"pyro.settings.set(module_local_params=True)\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/source/sdid.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"import pyro.distributions as dist\n",
"from pyro.infer.autoguide import AutoNormal\n",
"from chirho.indexed.handlers import IndexPlatesMessenger\n",
"from chirho.observational.handlers.cut import SingleStageCut\n",
"from chirho.robust.handlers.cut import SingleStageCut\n",
"from pyro.infer import Predictive\n",
"\n",
"pyro.settings.set(module_local_params=True)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
from pyro.infer.autoguide import AutoMultivariateNormal

from chirho.indexed.handlers import IndexPlatesMessenger
from chirho.observational.handlers.cut import (
CutComplementModule,
CutModule,
SingleStageCut,
)
from chirho.robust.handlers.cut import CutComplementModule, CutModule, SingleStageCut

pyro.settings.set(module_local_params=True)

Expand Down

0 comments on commit 8ba2f2c

Please sign in to comment.