validate_fixed_scaling_keys#

pymc_marketing.mmm.scaling.validate_fixed_scaling_keys(scaling, valid_labels, variable_name)[source]#

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

Parameters:
scalingVariableScaling

The scaling instance to validate.

valid_labelslist[str]

The expected coordinate labels (e.g. channel column names).

variable_namestr

Human-readable name for error messages (e.g. "channel").

Raises:
ValueError

If the scaling is a dict-valued FixedScaling whose keys don’t match valid_labels.