logistic_saturation#
- pymc_marketing.mmm.transformers.logistic_saturation(x, lam=0.5)[source]#
Logistic saturation transformation.
\[f(x) = \frac{1 - e^{-\lambda x}}{1 + e^{-\lambda x}}\]The logistic saturation function reaches the half-saturation point at \(x = \frac{ln(3)}{\lambda}\). This means the half-saturation point is approximately \(1/\lambda\). If you want to set a prior on the exact half-saturation point, you can use the inverse_scaled_logistic_saturation function, available in this package.
(
Source code,png,hires.png,pdf)
- Parameters:
- x
tensor Input tensor.
- lam
floator array_like, optional,bydefault 0.5 Represents the efficiency of the channel. Larger values represent a more efficient channel.
- x
- Returns:
tensorTransformed tensor.