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:
- scaling
VariableScaling The scaling instance to validate.
- valid_labels
list[str] The expected coordinate labels (e.g. channel column names).
- variable_name
str Human-readable name for error messages (e.g.
"channel").
- scaling
- Raises:
ValueErrorIf the scaling is a dict-valued
FixedScalingwhose keys don’t match valid_labels.