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:
  • param (Any) – The term(s) or variable factory to build into a tensor.

  • name (str) – Variable name used when building standalone VariableFactory objects. Terms handle their own naming internally.

Return type:

pt.TensorVariable or float

Returns:

The parameter tensor (XTensorVariable when dimensional).