Scaling#
- pydantic model pymc_marketing.mmm.scaling.Scaling[source]#
Scaling configuration for the MMM.
Examples
Data-derived scaling:
Scaling( target=DataDerivedScaling(method="max", dims=()), channel=DataDerivedScaling(method="max", dims=()), )
Fixed scaling for stable production refreshes:
Scaling( target=FixedScaling(dims=(), value=50_000.0), channel=FixedScaling(dims=(), value=10_000.0), )
Methods
Scaling.__init__(**data)Create a new model by parsing and validating input data from keyword arguments.
Scaling.from_dict(data)Reconstruct from a dict, dispatching nested VariableScaling via __type__.
Scaling.to_dict([_orig])Serialize to a dict via Pydantic model_dump.
- field channel: VariableScaling [Required][source]#
Scaling configuration for the channel (media) variables.
- field target: VariableScaling [Required][source]#
Scaling configuration for the target (response) variable.