ControlMuEffect#
- class pymc_marketing.mmm.additive_effect.ControlMuEffect(**data)[source]#
Effect that applies a user-configurable prior to each control variable.
- Parameters:
Methods
ControlMuEffect.__init__(**data)Create a new model by parsing and validating input data from keyword arguments.
ControlMuEffect.construct([_fields_set])ControlMuEffect.copy(*[, include, exclude, ...])Returns a copy of the model.
Register each data variable as
pm.Data.Create coefficients for each control variable and sum contributions.
ControlMuEffect.dict(*[, include, exclude, ...])Reconstruct from a dict.
Return supplementary data groups to store in DataTree.
ControlMuEffect.json(*[, include, exclude, ...])Compute the class name for parametrizations of generic classes.
ControlMuEffect.parse_file(path, *[, ...])ControlMuEffect.parse_raw(b, *[, ...])ControlMuEffect.schema([by_alias, ref_template])ControlMuEffect.schema_json(*[, by_alias, ...])ControlMuEffect.set_data(mmm, model, X)Update
pm.Datavariables from a new prediction dataset.ControlMuEffect.to_dict([_orig])Serialize to a dict via Pydantic model_dump.
ControlMuEffect.update_forward_refs(**localns)ControlMuEffect.validate(value)Attributes
contribution_var_nameName of the posterior deterministic holding this effect's contribution.
model_computed_fieldsmodel_configConfiguration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].model_extraGet extra fields set during validation.
model_fieldsmodel_fields_setReturns the set of fields that have been explicitly set on this model instance.
priordata_varsprefix