pymc-marketing
pymc-marketing copied to clipboard
Allow specifying prior distribution in MMM models via config
https://github.com/pymc-labs/pymc-marketing/blob/d4feeeafad6f0299b115dac3582ad6d98bd8241f/pymc_marketing/mmm/delayed_saturated_mmm.py#L123-L126
Right now it is mixed logic of creating RV and registering it in the model. In principle that should be the only one method that returns already registered RV. That will allow a user to override prior specification
related to #267
Thanks for the feedback! 👍 This was a change introduced in https://github.com/pymc-labs/pymc-marketing/pull/286 as an attempt to make the API somehow easy for the user. We will probably change it in https://github.com/pymc-labs/pymc-marketing/pull/295
The channel prior was completely removed in #295 , as model_config from model_builder allows for customisation of every parameter
We are still hard-coding things like it must be a HalfNormal prior.
We should allow arbitrary distributions like in the CLV models like here: https://github.com/pymc-labs/pymc-marketing/blob/0855e0139c88719d2c3e16f59b5655a1a0df4115/pymc_marketing/clv/models/beta_geo.py#L136
@ricardoV94 @twiecki Started working on this in PR #408
However, I encountered a minor issue and would like to get some help understanding how to solve it
Closed with #397