Intercept#
- class pymc_marketing.terms.Intercept(name='intercept', prior=<factory>)[source]#
GLM-style intercept term; same as
Parameterwith a default name.Interceptis provided for familiar GLM notation. It is identical toParameterin behavior and lifecycle. UseParameterwhen the role is not an intercept (e.g. a cohort scale or product effect).- Parameters:
- name
str Name for the PyMC variable. Defaults to
"intercept".- prior
VariableFactory Prior distribution. Any
VariableFactoryis accepted.
- name
Methods
Intercept.__init__([name, prior])Add coordinates to the model during
register_data.Build a free parameter variable.
Intercept.from_dict(data)Reconstruct a parameter from its serialized form.
Collect coordinates from
prior.dimspresent in the dataset.Register shared data variables as
pmd.Data.Intercept.set_data(ds[, model])Update shared data variables for out-of-sample prediction.
Intercept.to_dict([_orig])Attributes
Dataset variables this term reads as shared data.
Deterministics this term freezes for out-of-sample evaluation.