Achieving Point-in-Time Correctness and Handling Historical Features with Time Series Data
In the realm of time-series data, it’s a common scenario for feature values to evolve over time. For instance, in a fraud detection model, you might define a feature like user’s average transaction amount based on a series of transactions from your users. This value will continuously change as new transactions pour in. A typical training set comprises a label (what the model aims to predict) and a set of features. Each row often represents a historical transaction. Therefore, it’s crucial for the feature values in these rows to reflect their state at the time of the associated label. This concept is known as point-in-time correctness, where we need to obtain the historical values of features.