MetaMachine Learning Engineer · OnsiteCodemia practiceLeakage-Free Trailing Seven-Day Feature Counts for Each Label Event
For a churn or click model, you have label events (user_id, label_ts) and an activity log (user_id, event_ts, event_type). For each label row, compute the number of events of each type in the 7 days strictly before label_ts, without a full user-level cross join.
Hard
Data Manipulation (SQL/Python)