Issue with observed data in joint distribution

Skimming through your posts, I think you are trying to pull the NormalMixture log likelihood into your DensityDist logp. In that case, you shouldn’t be using pm.NormalMixture, but instead should use pm.NormalMixture.dist and use its logp method. That lets you make a pymc3 distribution object and use it to get the log likelihood of that distribution. Something like this:

or