Data Flow¶
Overview¶
Data moves from the DataSource through the node graph and into a Trial or Predictor, assembled at each step from that unit's edges.
When Trial C runs, its edges are resolved by pulling columns from the DataSource and from the outputs of node A and node B.
Columns are resolved late¶
edges is a plain DSL string and stays one everywhere — through inheritance, storage, comparison. It is expanded into actual column names in exactly one situation: at execution time, against the real data.
Defining a node validates only the structure of that string — that it parses and that any node it names exists. No schema is consulted and no column list is produced, so a node can legitimately refer to columns that do not exist until an upstream processor creates them.
See the edges DSL for the grammar.
What a processor receives¶
Each execution unit gets a data_dict keyed by its edge keys.
In an Experimenter, each key carries the training fold, its inner-validation slice, and the validation fold:
In a Trainer there is no inner fold, so each key is a pair:
X-less nodes¶
If a node's edges contain 'y' but no 'X' — a LabelEncoder, say — the y data becomes the primary input. The processor receives it directly, and its output becomes the new y columns.
Cache¶
Node outputs are cached in a capacity-based LRU (DataCache, 4 GB by default) owned by the Project and shared by every run in it. When several downstream units read the same node, it is computed once.
The cache key is (scope, node, typ), where scope is a random id generated by the data flow for one (run, fold). Exactly one flow instance exists per fold and it is never shared, so that id already identifies the fold uniquely.
One consequence: reopening a run creates fresh flow objects with new scope ids, so nothing cached by the previous instance is hit again. That is a cache miss and a recomputation — never a wrong value.
Inference¶
At serve time, Inferencer builds an in-memory graph per split holding only the fitted processors — no disk and no cache. It resolves only 'X' edges; 'y' and 'sample_weight' are training-only and are dropped, which is what lets you run inference on data that has no target column at all.
Related¶
- edges DSL — the wiring syntax
- State Model — when a node's output is available to read