Where the lift comes from
Past the baseline, feature engineering buys more performance per hour than hyperparameter tuning. The trick is engineering features that respect the time-of-prediction constraint. Aggregations over a time window, ratios, lags, and domain-specific groupings consistently outperform raw fields.
The pattern catalog
- Time-window aggregates — count/sum/mean over the last 7/30/90 days, computed as of prediction time.
- Ratios — value over a baseline ("this user's spend / their plan's average spend").
- Recency / frequency — days since last action, count of actions per period.
- Categorical interactions — pairs that represent business segments ("tier × region").
- Cross-entity rollups — features about the user's organization, not just the user.
The leakage check on every feature
For each engineered feature, write a one-sentence proof that it could be computed at prediction time, with the data available at that exact moment. If the proof is hard, the feature is leakage.