FrequencyReachAdditiveEffect.create_effect#
- FrequencyReachAdditiveEffect.create_effect(mmm)[source]#
Build the Meridian-style R&F pipeline and return the aggregate effect.
Transformation steps:
Saturate frequency:
frequency_sat = saturation(frequency_raw)Effective exposure:
effective_exposure_raw = reach_raw × frequency_satAdstock:
effective_exposure_adstocked = adstock(effective_exposure_raw)Scale:
channel_contribution = beta × effective_exposure_adstockedSum:
total_effect = Σ_channel channel_contribution
- Parameters:
- mmm
Model The parent MMM instance.
- mmm
- Returns:
tensorTensor with dims
(date, *mmm.dims)to be added to mu.