@@ -152,7 +152,7 @@ def apply(self, fgraph):
152
152
rewriter_name = getattr (node_rewriter , "name" , None ) or getattr (
153
153
node_rewriter , "__name__" , ""
154
154
)
155
- # If we converted to a MeasurableVariable we're done here!
155
+ # If we converted to a MeasurableOp we're done here!
156
156
if node not in fgraph .apply_nodes or isinstance (node .op , MeasurableOp ):
157
157
# go to next node
158
158
break
@@ -364,11 +364,11 @@ def construct_ir_fgraph(
364
364
365
365
Our measurable IR takes the form of an PyTensor graph that is more-or-less
366
366
equivalent to a given PyTensor graph (i.e. the keys of `rv_values`) but
367
- contains `Op`s that are subclasses of the `MeasurableVariable ` type in
368
- place of ones that do not inherit from `MeasurableVariable ` in the original
367
+ contains `Op`s that are subclasses of the `MeasurableOp ` type in
368
+ place of ones that do not inherit from `MeasurableOp ` in the original
369
369
graph but are nevertheless measurable.
370
370
371
- `MeasurableVariable`\s are mapped to log-probabilities, so this IR is how
371
+ `MeasurableOp` variables are mapped to log-probabilities, so this IR is how
372
372
non-trivial log-probabilities are constructed, especially when the
373
373
"measurability" of a term depends on the measurability of its inputs
374
374
(e.g. a mixture).
@@ -381,11 +381,6 @@ def construct_ir_fgraph(
381
381
measurable IR includes manipulations that are not applicable to outside of
382
382
the context of measurability/log-probabilities.
383
383
384
- For instance, some `Op`s will be lifted through `MeasurableVariable`\s in
385
- this IR, and the resulting graphs will not be computationally sound,
386
- because they wouldn't produce independent samples when the original graph
387
- would. See https://github.com/aesara-devs/aeppl/pull/78.
388
-
389
384
Returns
390
385
-------
391
386
A `FunctionGraph` of the measurable IR, a copy of `rv_values` containing
0 commit comments