01Chapter 1: Why a model can look good offline and fail in productionA model can score well during training and validation yet perform poorly after deployment. A common cause is temporal data leakage. Temporal data leakage occurs when a training row contains information that would not have been available when the model made the prediction.3 min read
02Chapter 2: Three clocks: event time, ingestion time, and prediction timeThis chapter assumes basic supervised machine learning, SQL joins, pandas DataFrames, and timestamps with time zones. You should already know that a feature is an input to a model, a label is the outcome to predict, and a training row represents one prediction case.2 min read
03Chapter 3: Defining entities, labels, and the prediction timestampAssume you know basic supervised machine learning, pandas DataFrames, SQL joins, window functions, and timestamps with time zones. This chapter defines the row structure that makes a training example point-in-time correct.2 min read
05Chapter 5: The as-of join: latest value at or before the prediction timeAssume you know basic supervised learning, pandas DataFrames, SQL joins, window functions, and timestamps with time zones. This chapter focuses on one question: which feature value was actually available when a prediction was made?2 min read
06Chapter 6: Limiting staleness with TTL and join toleranceAssume you know basic supervised machine learning, pandas DataFrames, SQL joins, window functions, and timestamps. This chapter focuses on one decision in a point-in-time join: how old a feature value may be before it becomes unsafe to use.2 min read
07Chapter 7: Assembling the training set end to endThis chapter assumes basic supervised machine learning, SQL joins and window functions, pandas DataFrames, and timestamps with time zones. The goal is to turn label rows and historical features into one training table without using information that was unavailable when each prediction would have bee2 min read
08Chapter 8: Splitting by time, not at randomAssume you know supervised learning, pandas DataFrames, SQL joins, and basic timestamp handling. This chapter focuses on evaluation after you have built point-in-time correct feature rows. The goal is to make validation resemble the future predictions your model will produce.2 min read
09Chapter 9: Testing that no feature comes from the futureThis chapter assumes you know supervised learning, pandas DataFrames, SQL joins, and basic train/validation splits. The goal is to make temporal leakage an automated failure rather than a code-review guess.2 min read
10Chapter 10: Rolling-window features that exclude future rowsAssume you know basic supervised machine learning, pandas, SQL joins, window functions, and timestamps. This chapter focuses on one rule: a feature for a prediction at time \(t\) may use only events available before \(t\).2 min read
11Chapter 11: Late-arriving and corrected dataAssume you understand features, labels, SQL joins, pandas, and basic timestamp handling. This chapter adds a second time axis to the point-in-time join: when the system learned about a fact.2 min read
12Chapter 12: Keeping training and serving computations consistentAssume you understand features, labels, joins, timestamps, and basic pandas or SQL. This chapter focuses on training-serving skew, which is a difference between how a feature is calculated during training and how it is calculated when a model makes a live prediction.2 min read
13Chapter 13: Reproducing a training set months laterAssume you know supervised learning, SQL joins, pandas, and timestamp handling. This chapter focuses on the difference between rerunning a training query and reproducing the exact dataset used before.2 min read