build_param#

pymc_marketing.terms.build_param(param, name='param')[source]#

Build a tensor parameter from a term, composition, variable factory, or constant.

Must be called within a pm.Model context.

Parameters:
paramModelTerm | Sum | Product | VariableFactory | int | float | xr.DataArray

The term(s) or variable factory to build into a tensor.

namestr

Variable name used when building standalone VariableFactory objects. Terms handle their own naming internally.

Returns:
pt.TensorVariable or float

The parameter tensor (XTensorVariable when dimensional).