addPromotionFeatures
chainalign-backend / ingestionService / addPromotionFeatures
Function: addPromotionFeatures()
addPromotionFeatures(
data):any[]
Defined in: ingestionService.js:212
Adds promotion-related features (is_promotion, promotion_lift_factor) to the transformed data. Assumes a 'promotion_id' field exists in each data row to identify promotional events.
Parameters
data
any[]
The transformed data.
Returns
any[]
The data with added promotion features.