root_saturation#
- pymc_marketing.mmm.transformers.root_saturation(x, alpha)[source]#
Root saturation transformation.
\[f(x) = x^{\alpha}\](
Source code,png,hires.png,pdf)
- Parameters:
x (
Union[Variable,Sequence[Variable], ArrayLike,XTensorVariable,DataArray]) – Input tensor.alpha (
Union[Variable,Sequence[Variable], ArrayLike,XTensorVariable,DataArray]) – Exponent for the root transformation. Must be non-negative. A tensor with dims, such as a per-channel("channel",)alpha, is matched toxby dimension name, not by position.
- Return type:
- Returns:
Transformed tensor.