root_saturation#

pymc_marketing.mmm.transformers.root_saturation(x, alpha)[source]#

Root saturation transformation.

\[f(x) = x^{\alpha}\]

(Source code)

Parameters:
xtensor

Input tensor.

alphafloat

Exponent for the root transformation. Must be non-negative.

Returns:
tensor

Transformed tensor.