VariableScaling#
- pydantic model pymc_marketing.mmm.scaling.VariableScaling[source]#
Abstract base for scaling a variable.
The scaling through the dimension of
'date'is assumed and doesn’t need to be specified.Concrete subclasses:
DataDerivedScaling– scale by a statistic of the data ("max"or"mean"), computed at fit time.FixedScaling– use a user-supplied constant that stays the same across model refreshes.
Methods
VariableScaling.__init__(**data)Create a new model by parsing and validating input data from keyword arguments.
Reconstruct from a dict via Pydantic model_validate.
Human-readable summary of the scaling strategy (e.g. for logging).
Serialize to a dict via Pydantic model_dump.