Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit c64e12f

Browse files
committed
Update the README
1 parent d19ef6e commit c64e12f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

README.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ containing Aesara ``RandomVariable``\s:
3434
Y_rv = at.random.normal(0.0, at.sqrt(S_rv))
3535
3636
# Compute the joint log-probability
37-
y = at.scalar("y")
38-
s = at.scalar("s")
39-
logprob = joint_logprob({Y_rv: y, S_rv: s})
37+
logprob, (y, s) = joint_logprob(Y_rv, S_rv)
4038
4139
4240
Log-probability graphs are standard Aesara graphs, so we can compute
@@ -102,11 +100,8 @@ Joint log-probabilities can be computed for some terms that are *derived* from
102100
M_rv = Z_rv[I_rv]
103101
M_rv.name = "M"
104102
105-
z = at.vector("z")
106-
i = at.lscalar("i")
107-
m = at.scalar("m")
108103
# Compute the joint log-probability for the mixture
109-
logprob = joint_logprob({M_rv: m, Z_rv: z, I_rv: i})
104+
logprob, (m, z, i) = joint_logprob(M_rv, Z_rv, I_rv)
110105
111106
112107
logprob = rewrite_graph(logprob, custom_rewrite=topo_constant_folding)

0 commit comments

Comments
 (0)