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
importpymcaspmfrompymc_experimentalimportMarginalModelwithMarginalModel() asm:
x=pm.Bernoulli("x", p=0.5)
y=pm.Normal("y", x)
m.marginalize(["x"])
m.unmarginalize(["x"]) # ValueError: list.remove(x): x not in list
m.unmarginalize([x]) is fine, but this is problematic because x may not be accessible to the caller