R2D2Split#
- class pymc_marketing.r2d2.R2D2Split(decomposition, component_name, _dims=None)[source]#
Lazy reference to a component’s split variable.
Implements VariableFactory protocol so it can be used wherever a Prior is accepted (e.g., in model_config priors).
When create_variable() is called, auto-builds the decomposition if not already built, then creates a pmd.Normal coefficient with mu=0, sigma=split, dims=component_dim.
Methods
R2D2Split.__init__(decomposition, component_name)R2D2Split.create_variable(name[, xdist])Create coefficient variable.
R2D2Split.from_dict(data)Deserialize from dictionary.
R2D2Split.to_dict([_orig])Attributes
dimsDimension of the split variable.
decompositioncomponent_name