Hi all,
I am using version 5.10.0 and am trying to sample from a truncated lognormal distribution:
xLogNormalDist = pm.LogNormal.dist(mu=df.xMu, sigma=df.xSigma, shape=len(df))
xTrue = pm.Bound(name="xTrue", dist=xLogNormalDist, lower=1, upper=df.xMax, shape=len(df))
and then use xTrue
as an input variable in a logistic regression. I get the following error when trying to perform a prior predictive check:
NotImplementedError: Cannot sample from a bounded variable
I guess the error message is quite self-explanatory but I’m still wondering if there’s anything I’m doing wrong here.
Thanks for any help!