Project: join delayed outcomes before measuring model error
Serving produces predictions before outcomes may be available. Joining by row position can silently compare the wrong prediction and label when events arrive out of order. Join by stable identity and retain the model version with every measurement.
This project builds a versioned monitoring report from prediction events and delayed outcomes. Missing outcomes remain unmatched instead of being interpreted as successes. Duplicate identifiers are rejected so repeated events cannot inflate the denominator. The review should explain late labels, corrections, monitoring-window selection and how sampled missing outcomes could bias reported quality.
predictions={"a":.2,"b":.8}
labels={"b":1}
print([(key,p,labels[key]) for key,p in predictions.items() if key in labels])Review the design
A matched metric can be biased when outcomes are missing non-randomly. Monitoring should retain label coverage, model identity and delays, and it needs an incident policy for stale or partial evidence.
Your task
Implement delayed_report(predictions,outcomes), predictions=(id,version,probability), outcomes=(id,binary_label). Reject duplicate ids in either input, invalid probabilities/labels. Return dict version->{predictions,matched,brier}; brier None when no labels match. Unknown outcome ids are ignored.
The explanation opens here once every check passes.