scaling#

Scaling configuration for the MMM.

Functions

deserialize_variable_scaling(d)

Deserialize a VariableScaling from a dict, handling both legacy and new formats.

panel_channel_fixed_scaling_remaining_dims(...)

Non-date dims of channel data left after reduction over date and scaling_dims.

validate_fixed_scaling_keys(scaling, ...)

Check that dict-valued FixedScaling keys match the expected labels.

Classes

DataDerivedScaling(**data)

Scale by a statistic of the data, computed at fit time.

FixedScaling(**data)

Use a user-supplied constant that stays the same across model refreshes.

Scaling(**data)

Scaling configuration for the MMM.

VariableScaling(**data)

Abstract base for scaling a variable.