Predictive ML features and feedback 00:00:01 The fraud clue that arrived tomorrow A purchase is made at ten. The investigation that labels it happens later. If Ren gives the training pipeline tomorrow's investigation as an input, the offline fraud model suddenly looks brilliant and the live system cannot reproduce it. A predictive model learns from historical examples, but at serving time it sees only information that has arrived by the decision. Construct each training example using an entity key, prediction time and features that would have been available then. Late outcomes supply labels later. An ordinary join to the latest account row can accidentally teach the model about tomorrow. Mark when each measurement describes the world and when it became available to the scoring system. At purchase time the valid balance snapshot in this case was available by nine fifty-eight. 00:00:57 Keep event and availability times separate A transaction may occur at 09:55 and arrive at 10:04. For a decision at 10:00, an offline join must respect both the chosen event definition and actual availability. Split validation by time and keep the label horizon outside the feature window. A chargeback recorded two days later belongs in the target column. Joining it into the feature vector makes offline fraud detection implausibly easy. Calibrate predicted probabilities on representative held-out examples. Tune the operating threshold using the relative cost of false approvals and false declines. Accuracy can be high for a model that never flags rare fraud. If a cohort receives risk 0.1, roughly one in ten should be positive over enough comparable cases. A policy can still send that cohort to review rather than reject. Estimate how often an event occurs among examples assigned similar probabilities and monitor that relationship by cohort. Choose a decision threshold using measured costs, capacity and delayed labels. High accuracy on a rare event can coexist with zero detections. If blocking a legitimate order costs 5 dollars and accepting fraud costs 95 dollars, the simplified risk-neutral break-even probability is 5/(5+95) equals 0.05. Review queues and changing fraud rates can shift the operating point. Maintain an offline store for historical reconstruction and an online store for low-latency feature lookup. Consistent definitions help, but ingestion lag, late correction, missing values and different transformations can still produce skew. Validate by logging permitted serving features and replaying the same timestamps. A release also needs a simple baseline, calibration, a threshold tied to error cost and an outcome that will eventually be observable. 00:03:13 Rebuild the ten-o'clock decision The ledger records event and arrival times. A later fraud report labels this transaction after the prediction has already been served. Join each decision to the most recent eligible feature version. Keep the later chargeback solely as a label. Compare the logged serving vector to the reconstructed vector and inspect freshness, defaults and transformation versions. Estimate precision, recall, calibration and business costs by cohort. A shift in inputs is an investigation signal, not proof of worse accuracy. 00:03:47 Would the model have known this then? A new feature is highly predictive but arrives after the purchase. How should the training set use it? The serving system did not have that information at decision time. Including it creates leakage and an offline score that cannot be reproduced. Replay with the same identity and decision time, then wait for labels to mature before judging the predictions. A feature can be genuinely predictive and still be illegal evidence for that historical decision.