Pymc-marketing (adstock and saturation)

One place to look would be the code for the DelayedSaturatedMMM class (source code here). You could begin to play around with copying this, renaming it, and changing whatever pieces (e.g., the adstock function) you wanted. This blog post by @Niall_Oulton may also provide some pointers.

1 Like