handle_parameter_configurations#

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

Handle the parameter configuration for a variable.

Parameters:
namestr

Name of the 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:
Any

The parameter value or a PyMC random variable.