A feature platform connects two time-sensitive problems: creating historical training examples and serving sufficiently fresh features at prediction time. Chronon makes that contract more explicit than a collection of unrelated ETL scripts.
Definitions are configuration
Chronon’s public example declares an entity source, selects fields, and defines a GroupBy keyed by user ID with online serving enabled. These are configuration objects, not dataframe-style calls on an undefined data variable. Official example.
The following is a configuration excerpt, not a standalone tutorial or a claim that the table exists locally. It requires a compatible Chronon checkout, its deployment configuration, and a daily snapshot table named data.users.
from ai.chronon.api.ttypes import Source, EntitySource
from ai.chronon.query import Query, select
from ai.chronon.group_by import GroupBy
source = Source(entities=EntitySource(
snapshotTable="data.users",
query=Query(selects=select("user_id", "account_created_ds", "email_verified")),
))
user_features = GroupBy(sources=[source], keys=["user_id"],
aggregations=None, online=True)
Use the repository’s quickstart as a unit: pin its commit, sample data, configuration, and execution commands together. Copying one API expression is not sufficient to provision a functioning feature system.
Conceptual illustration; labels describe responsibilities, not a deployment specification.
Point-in-time correctness
Consider an illustrative fraud model trained on a transaction at noon. A feature counting previous transactions should exclude events learned after noon, even if the training job runs tomorrow. Using today’s fully updated aggregate for yesterday’s label can leak future information into training.
Serving has a different concern: how stale can a feature be before the prediction should fall back or fail? A consistent formula does not guarantee consistent freshness. Record feature timestamps and model/definition versions with predictions where operationally feasible.
Backfills and changes
A changed aggregation window creates a new data contract. Backfill historical values and verify online materialization before moving consumers. Compare sample keys across the two paths, including missing entities and late events. Treat the absence of a value separately from a valid zero.
My main design question is who owns the transition from raw events to a feature that models can safely consume. Michelangelo and Griffin provide related platform perspectives.