Your reading path
Start with the right questions.
From principle to practice
A decision-time ledger that catches hidden hindsight
Open the worked exampleSpecify the decision the model is making
An invoice extraction model, late-payment predictor and month-end retrieval assistant have different information boundaries. State the input a deployed system would receive and the moment it must respond. Then ask of every candidate feature: was this value available to that system at that time, and is its source allowed in the task?
The TimeSeriesSplit reference explains why time ordering matters and states an equally-spaced-sample assumption for comparable fold durations. Irregular business events are not automatically equally spaced. Define actual calendar windows or task-specific cohorts rather than assume an index-based splitter establishes a historical evaluation.
Use event time, availability time and export time separately
An event can occur before a decision while its record is entered afterward. A correction can revise an earlier event after the prediction. An export generated today can include all of those later facts. Preserve those distinct clocks where established; do not use the event date as a proxy for when information became available.
The Federal Reserve’s FRED/ALFRED real-time-period documentation distinguishes current information about the past from information known as of an earlier period. It is a useful primary example of revision-aware history. It does not mean a commercial source automatically retains the equivalent snapshots or timestamps.
A decision-time ledger that catches hidden hindsight
Illustrative task: predict whether an invoice will become overdue at 09:00 UTC on 1 March 2026. The dates and events below are invented. A source event date alone would allow several rows that the system could not yet have known at the decision time.
The example accepts the original invoice record and excludes the later correction and payment update from the feature snapshot. A final payment outcome may later become the evaluation label; that does not make it a permissible input. If the source cannot reconstruct the historical view, record the limitation instead of calling the experiment a deployment simulation.
- Candidate information
- Original invoice amount
- Event / effective time
- 27 February
- Available to system
- 28 February, 16:00 UTC
- Feature at 1 March, 09:00 UTC?
- Yes, if relevant and within task scope
- Candidate information
- Corrected amount for that same invoice
- Event / effective time
- 27 February event revised
- Available to system
- 3 March, 11:00 UTC
- Feature at 1 March, 09:00 UTC?
- No; later knowledge
- Candidate information
- Payment made by customer
- Event / effective time
- 28 February
- Available to system
- 2 March, 10:00 UTC
- Feature at 1 March, 09:00 UTC?
- No; event preceded decision but entry did not
- Candidate information
- Final overdue outcome
- Event / effective time
- After the prediction horizon
- Available to system
- 1 April
- Feature at 1 March, 09:00 UTC?
- Target label only, not a prediction feature
Make the as-of filter visible and testable
The teaching snippet selects only facts available by the decision cutoff. It is intentionally a minimal availability check, not a complete revision-resolution system. A production snapshot must additionally choose the correct known version per entity, apply the task’s effective-time rules and preserve the source references used.
Use consistent time zones and explicit inclusivity at the cutoff. An availability field with date-only precision cannot justify a claim about an exact intraday boundary without another rule. If a source backfills availability timestamps during a migration, that history also needs disclosure.
from datetime import datetime, timezone
cutoff = datetime(2026, 3, 1, 9, tzinfo=timezone.utc)
facts = [
{'id': 'original', 'available': '2026-02-28T16:00:00+00:00'},
{'id': 'correction', 'available': '2026-03-03T11:00:00+00:00'},
{'id': 'payment', 'available': '2026-03-02T10:00:00+00:00'},
]
eligible = [r['id'] for r in facts
if datetime.fromisoformat(r['available']) <= cutoff]
assert eligible == ['original']Allow labels to mature without leaking them into training
A late-payment outcome cannot be fully observed before the chosen horizon and any reporting delay have passed. Define which examples had mature labels at the model-training freeze. A recent decision with no observed late event is not automatically a true negative; it may simply be too early to know.
Separate the feature snapshot date, training freeze, evaluation decision window and outcome-observation window. Retain right-censored or unresolved cases according to a declared policy. Do not silently exclude difficult unresolved cases after viewing model performance, because that changes the population being evaluated.
Report temporal and entity overlap together
A future month can contain familiar customers, suppliers, templates and recurring contracts. That may match deployment, but it differs from evaluating a new organization. Keep the time split and any entity/document-family grouping rule explicit. A strict new-entity requirement can need a different cohort from a future-period requirement.
Also identify system migrations, label-policy changes and shifting product or document mixes across periods. A score change may reflect source preparation or target-definition changes rather than the calendar alone. Keep per-period coverage and missingness reports, not only one aggregate metric.
Freeze the historical experiment as a reproducible artifact
Preserve decision IDs, cutoffs, eligible source versions, field availability rules, label horizon and split assignment with the release. Recreate a few examples manually, including a late-entered record and a revised amount, before accepting a larger batch. Record unknown historical availability as unknown rather than substitute today’s export time.
A Business Datasets inquiry should state the actual prediction moment, necessary history, outcome horizon and desired novelty. That lets source discussions focus on whether the required temporal evidence exists. When it does not, narrow the evaluation claim or seek a different source; a date-sorted file cannot manufacture missing historical state.
Questions buyers ask
Sources & research notes
Public documentation reviewed 2026-11-13. Provider descriptions and published terms are attributed below. Published facts are attributed to their sources. Worked files are labeled as illustrative or as an inspected editorial source; neither implies commercial dataset clearance.
- scikit-learn TimeSeriesSplitscikit-learn developers · Reviewed 2026-11-13
Primary chronological split behavior and equally-spaced-sample assumption; irregular business records require explicit period design.
- FRED API real-time periodsFederal Reserve Bank of St. Louis · Reviewed 2026-11-13
Primary example of current historical information versus information known as of a past period.
