Decide how to deal with automatic broadcast in derived RVs #51
Unanswered
ricardoV94
asked this question in
Q&A
Replies: 1 comment 1 reply
-
We defer to Aesara on these matters. In other words, we let Aesara's error handling explain the issue to the user. It has special error messages for exactly these kinds of user-induced issues, so there's no reason to introduce redundancies to that effect in this library. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Both #26 and #22 raise the question of how to deal with automatic RVs whose value_variable results from an intermediate broadcast of the base RV
The computed logp is only correct when
loc
is ofsize==2
.This might be even more complicated if the
y_base_rv
inputs are themselves variable (meaning it may itself have not a fixed size)I see two ways we could deal with this:
y_base_rv.shape == y_val.shape
in the returned logprobBeta Was this translation helpful? Give feedback.
All reactions