FrequencyReachAdditiveEffect.create_data#

FrequencyReachAdditiveEffect.create_data(mmm)[source]#

Register pm.Data nodes required for the effect.

Creates two pm.Data tensors:

  • {prefix}_frequency_raw with dims (date, *mmm.dims, rf_channel)

  • {prefix}_reach_raw with dims (date, *mmm.dims, rf_channel)

Also adds an rf_channel coordinate to the current PyMC model context containing the sorted channel names from the DataFrame.

Parameters:
mmmModel

The parent MMM instance (must have an active PyMC model context).