extract_response_distribution#
- pymc_marketing.pytensor_utils.extract_response_distribution(pymc_model, idata, response_variable)[source]#
Extract the response distribution graph, conditioned on posterior parameters.
- Parameters:
- pymc_model
Model The PyMC model to extract the response distribution from.
- idata
InferenceData The inference data containing posterior samples.
- response_variable
str The name of the response variable to extract.
- pymc_model
- Returns:
pt.TensorVariableThe response distribution graph.