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_modelModel

The PyMC model to extract the response distribution from.

idataInferenceData

The inference data containing posterior samples.

response_variablestr

The name of the response variable to extract.

Returns:
pt.TensorVariable

The response distribution graph.