density#

pymc_marketing.mmm.utils.density(dist, *, value, **params)[source]#

Request density of dist at value.

This helper creates dist with dummy params, requests its density from pymc.logp and then reintroduces the original params values. This avoids accidental rewrite of random graphs above params when the logp cannot be obtained by direct dispatch