Enforce domain checks for media transformations #918
Labels
good first issue
Good for newcomers . Doesn't require extensive knowledge of the repo and package
help wanted
Extra attention is needed
MMM
Checklist:
Adstock Transformations:
check_parameters
foralpha
ingeometric_adstock
#960Saturation Transformations
Any other parameters that would have a restricted domain?
Original message
The docstring says alpha must be between 0 and 1. But you can pass negative and larger alpha values and it will produce strange results, silently. Negative alpha subtracts impressions from each day. Adstock greater than 1 causes exponential accumulation of impressions over time. I can't see users ever finding this behaviour helpful.
Proposed solution: Adding a check would make it easier to spot mistakes, especially in large hierarchical models with complex parameterizations.
The text was updated successfully, but these errors were encountered: