handle_nested_distribution#

pymc_marketing.model_config.handle_nested_distribution(name, param, parameter_config, dim_handler)[source]#

Handle a nested distribution configuration.

Parameters:
namestr

Name of parent variable.

paramstr

Name of the parameter.

parameter_configDict

A configuration dictionary with ‘dist’ and ‘kwargs’ keys.

dim_handlerCallable

A function that maps variable shapes to the desired dims.

Returns:
TensorVariable

A PyMC random variable.