Skip to content

Commit

Permalink
Fix image duplication in intro tutorial (#209)
Browse files Browse the repository at this point in the history
* Fix image duplication

* fix the one other warning in the docs build
  • Loading branch information
eb8680 authored Jul 11, 2023
1 parent 02b21ab commit f521e04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/design_notes/interventions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ whose behavior is modified by effect handlers during posterior inference.
def sample(name: str, dist: pyro.distributions.Distribution, obs: Optional[Tensor] = None) -> Tensor:
return obs if obs is not None else dist.sample()
As discussed in the Introduction, Pyro already has an effect handler `pyro.poutine.do` for intervening on `sample`statements, but its implementation is too limited to be ergonomic for most causal inference problems of interest to practitioners.
As discussed in the Introduction, Pyro already has an effect handler ``pyro.poutine.do`` for intervening on ``sample`` statements, but its implementation is too limited to be ergonomic for most causal inference problems of interest to practitioners.

The polymorphic definition of ``intervene`` above can be expanded as the generic type ``Intervention`` is made explicit.

Expand Down
8 changes: 4 additions & 4 deletions docs/source/tutorial_i.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"![title](figures/Conditional_Distribution_of_Data.png)"
"![fig1](figures/Conditional_Distribution_of_Data.png)"
]
},
{
Expand Down Expand Up @@ -640,7 +640,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"![title](figures/Interventional_Conditional.png)"
"![fig2](figures/Interventional_Conditional.png)"
]
},
{
Expand Down Expand Up @@ -1515,7 +1515,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"![title](figures/Interventional_Marginal.png)"
"![fig3](figures/Interventional_Marginal.png)"
]
},
{
Expand Down Expand Up @@ -1828,7 +1828,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"![title](figures/Interventional_Posterior.png)"
"![fig4](figures/Interventional_Posterior.png)"
]
},
{
Expand Down

0 comments on commit f521e04

Please sign in to comment.