Thank you! That’s actually where i got my original code from :]
The CAC curve looks fine, the issue only becomes apparent if you look at marginals. I noticed that this was not done in any of the publicly available notebooks using this function.
Quick addendum - i tried plugging in a couple of other saturation functions and time and again have gotten the error:
“Length of Elemwise{true_div,no_inplace}.0 cannot be determined”
For example, this happens when i copy-paste the exact code for tanh_saturation() from pymc_marketing/mmm/transformers.py; it has also come up for a Hill function as well as a couple of other alternatives i tried throwing at this problem. Any tips you may have for solving this would be immensely appreciated.