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.

Parameters:
decompositionR2D2

The parent decomposition.

component_namestr

Name of the component.

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

dims

Dimension of the split variable.

decomposition

component_name