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

Fix typo and tweak wording in get_dependencies() docs #1975

Merged
merged 3 commits into from
Feb 16, 2025
Merged
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
11 changes: 6 additions & 5 deletions numpyro/infer/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ def model_1():
},
}

Here is an example where two variables ``a`` and ``b`` start out
conditionally independent in the prior, but become conditionally dependent
in the posterior do the so-called collider variable ``c`` on which they
both depend. This is called "moralization" in the graphical model
literature::
Here is an example where two variables ``a`` and ``b`` are
conditionally independent in the prior but conditionally dependent
in the posterior due to a so-called "collider" variable ``c``. ``a``
and ``b`` both affect `c``, and so they are conditionally dependent
given a value of ``c``. This is called "moralization" in the graphical
model literature.::

def model_2():
a = numpyro.sample("a", dist.Normal(0, 1))
Expand Down