MediaTransformation#
- class pymc_marketing.mmm.media_transformation.MediaTransformation(adstock, saturation, adstock_first, dims=None)[source]#
 Wrapper for applying adstock and saturation transformation to media data.
- Parameters:
 - adstock
AdstockTransformation The adstock transformation to apply.
- saturation
SaturationTransformation The saturation transformation to apply.
- adstock_firstbool
 Flag to apply the adstock transformation first.
- dims
Dims The dimensions of the parameters.
- adstock
 - Attributes:
 - first
AdstockTransformation|SaturationTransformation The first transformation to apply.
- second
AdstockTransformation|SaturationTransformation The second transformation to apply.
- first
 
Methods
MediaTransformation.__init__(adstock, ...[, ...])Create a media transformation from a dictionary.
Convert the media transformation to a dictionary.
Attributes
dimsadstocksaturationadstock_first