Replies: 1 comment
-
|
Hi @MateSroka, Thank you so much for contacting us. I would like to inform you that Meridian allows you to access the assessed values of slope of the Hill/ Adstock transformer etc. from the trained model, by channel, in the inference_data attribute of the meridian model object. Please find the sample code to extract some of the parameters below. You may use similar code to extract any other required parameters similarly. Please find the respective parameter naming conventions followed in Meridian in our documentation on Default Prior Distributions.
The posterior distributions for all other parameters can be accessed in a similar manner. You may also run Please note that the For more information on how the Feel free to reach out if you have any questions or suggestions regarding the same. Thank you Google Meridian Support Team |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thanks for your work on this project – I really appreciate it!
I have a question about working with a fitted MMM model. I see that the model object contains a parameter called inference_data, which holds the sampled parameter values after fitting.
I’d like to extract the following parameters from it:
Adstock parameters per media variable (e.g. decay rate or retention).
Hill function parameters – typically alpha and gamma.
Final regression coefficients for media variables after transformation (adstock + hill).
Regression coefficients for non-media variables (e.g. pricing, seasonality, trend, etc.).
I’m aware that I can retrieve credible intervals using the method:
analyzer.get_mean_and_ci(mmm.inference_data.posterior.alpha_m, 0.9)This works great for the adstock parameters (alpha_m). Is there a similar way (or recommended best practice) to extract:
Hill parameters (gamma_m, beta_m or equivalent),
Final coefficients for transformed media and non-media variables?
Also, is there a list of all available parameters within inference_data.posterior, or a preferred way to inspect them programmatically?
Any example or guidance would be much appreciated!
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions