@@ -125,8 +125,11 @@ def setup_class(self):
125
125
# add a potential as well
126
126
pot = Potential ("pot" , mu ** 2 )
127
127
128
+ # add a deterministic that depends on an unnamed random variable
129
+ pred = Deterministic ("pred" , Normal .dist (0 , 1 ))
130
+
128
131
self .distributions = [alpha , sigma , mu , b , Z , nb2 , zip , w , nested_mix , Y_obs , pot ]
129
- self .deterministics_or_potentials = [mu , pot ]
132
+ self .deterministics_or_potentials = [mu , pot , pred ]
130
133
# tuples of (formatting, include_params)
131
134
self .formats = [("plain" , True ), ("plain" , False ), ("latex" , True ), ("latex" , False )]
132
135
self .expected = {
@@ -146,6 +149,7 @@ def setup_class(self):
146
149
),
147
150
r"Y_obs ~ Normal(mu, sigma)" ,
148
151
r"pot ~ Potential(f(beta, alpha))" ,
152
+ r"pred ~ Deterministic(f(<normal>))" ,
149
153
],
150
154
("plain" , False ): [
151
155
r"alpha ~ Normal" ,
@@ -159,6 +163,7 @@ def setup_class(self):
159
163
r"nested_mix ~ MarginalMixture" ,
160
164
r"Y_obs ~ Normal" ,
161
165
r"pot ~ Potential" ,
166
+ r"pred ~ Deterministic" ,
162
167
],
163
168
("latex" , True ): [
164
169
r"$\text{alpha} \sim \operatorname{Normal}(0,~10)$" ,
@@ -176,6 +181,7 @@ def setup_class(self):
176
181
),
177
182
r"$\text{Y_obs} \sim \operatorname{Normal}(\text{mu},~\text{sigma})$" ,
178
183
r"$\text{pot} \sim \operatorname{Potential}(f(\text{beta},~\text{alpha}))$" ,
184
+ r"$\text{pred} \sim \operatorname{Deterministic}(f(\text{<normal>}))" ,
179
185
],
180
186
("latex" , False ): [
181
187
r"$\text{alpha} \sim \operatorname{Normal}$" ,
@@ -189,6 +195,7 @@ def setup_class(self):
189
195
r"$\text{nested_mix} \sim \operatorname{MarginalMixture}$" ,
190
196
r"$\text{Y_obs} \sim \operatorname{Normal}$" ,
191
197
r"$\text{pot} \sim \operatorname{Potential}$" ,
198
+ r"$\text{pred} \sim \operatorname{Deterministic}" ,
192
199
],
193
200
}
194
201
0 commit comments