You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One tricky thing will be to work in conjunction with #6932
Partial imputation is a model transformation that happens usually at model.register_rv and creates two model RVs (the observed and unobserved components) that are the joined together in a deterministic (with the original name) to look like a single entity in case the variable is used downstream elsewhere (or just so it shows in the trace)
We could read nan in constant values and do the same automatic imputation as observe does.
Besides this, and what I think is a better API, we could add a mask kwarg, that specifies which subset dimensions of the variable are to be observed, and then trigger the same kind of model transformation that observe=[x, np.nan]) does. This could be done without a warning because it's explicit.
The second approach as the benefit that the mask can be a shared variable (i.e., pm.Data) that can be updated later. See #6626
The text was updated successfully, but these errors were encountered:
One tricky thing will be to work in conjunction with #6932
Partial imputation is a model transformation that happens usually at
model.register_rv
and creates two model RVs (the observed and unobserved components) that are the joined together in a deterministic (with the original name) to look like a single entity in case the variable is used downstream elsewhere (or just so it shows in the trace)We could read
nan
in constant values and do the same automatic imputation asobserve
does.Besides this, and what I think is a better API, we could add a
mask
kwarg, that specifies which subset dimensions of the variable are to be observed, and then trigger the same kind of model transformation thatobserve=[x, np.nan])
does. This could be done without a warning because it's explicit.The second approach as the benefit that the mask can be a shared variable (i.e.,
pm.Data
) that can be updated later. See #6626The text was updated successfully, but these errors were encountered: