How to run models with multi products and/or how to get volume contributions by var #254
Replies: 1 comment 3 replies
-
In general, when building multi-product models in MMM, you would construct seperate models for each product. I'm assuming that the products you mention are substituable for each other. For example, if you're looking at a 100ml and 250ml Shampoo of the same type, you would either model total sales (sum the volume) or build two models making sure you include cross-product variables - in particular price and distribution. If the different SKUs are something like "flavours" - e.g. Mint, Lemon then you should be fine to model them at an aggregated level. Afraid i don't yet know LightweightMMM well enough to give the precise code and i'm having issues running it but in the docs (https://lightweight-mmm.readthedocs.io/en/latest/api.html), the command "lightweight_mmm.plot.create_media_baseline_contribution_df(media_mix_model: lightweight_mmm.lightweight_mmm.LightweightMMM, target_scaler: Optional[lightweight_mmm.preprocessing.CustomScaler] = None, channel_names: Optional[Sequence[str]] = None)→ pandas.core.frame.DataFrame[source]" seems to be what you want. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I have two questions...
Does Lightweight MMM support multi-product models? I want to run a couple of different SKUs from one brand in one model. How should I go about that? (This was asked in Jan but remains unanswered.)
Where/how can I get volume contributions from each variable (media and all other variables) at a weekly level? I need to build waterfall charts for latest vs prev 52 wks.
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions