MMMIDataWrapper.get_channel_data#

MMMIDataWrapper.get_channel_data()[source]#

Get raw channel data in original units (not spend-converted).

Always returns channel_data from constant_data, regardless of whether cost_per_unit / channel_spend has been set. Use this when you need data in the units the model was trained on (e.g., impressions, clicks) rather than monetary units.

Returns:
xr.DataArray

Raw channel data with dims (date, channel) or (date, *custom_dims, channel).

Raises:
ValueError

If channel_data not found in constant_data.