Functions involved in training/testing logit for display impressions