tanh_saturation#
- pymc_marketing.mmm.transformers.tanh_saturation(x, b=0.5, c=0.5)[source]#
Tanh saturation transformation.
\[f(x) = b \tanh \left( \frac{x}{bc} \right)\](
Source code,png,hires.png,pdf)
- Parameters:
- Returns:
tensorTransformed tensor.
References
See https://www.pymc-labs.com/blog-posts/reducing-customer-acquisition-costs-how-we-helped-optimizing-hellofreshs-marketing-budget/ # noqa: E501