Data Preparation#

Everything the model and the backend consume is produced offline by the notebooks and scripts under preprocessing/ and algorithms/. These are research artifacts, separate from the two serving apps — you do not need them to run the demo, only to rebuild the datasets or retrain. The Datasets page covers the resulting numbers; this page covers how they are built.

Building the road graphs and features#

NotebookProduces
preprocessing/graph_preprocessing.ipynbThe city road graphs (nodes / edges) fed to Graphormer and to igraph.
preprocessing/ETA_additional_features_processing.ipynbThe extra ETA features (geometry, time-of-day, etc.).
preprocessing/gismeteo_parser.ipynbWeather data (feeds meteoData.csv).

Trip filtering (rebuild count, min/max length, total time) and the two targets — real travel time and real trip length — are described on the Datasets page.

Node embeddings (DGI + GraphSAGE)#

The backend’s neural ETA path (FFNet) consumes per-node embeddings, not raw coordinates. Those embeddings are trained with Deep Graph Infomax (DGI) over a GraphSAGE encoder in algorithms/stellar_deepgraphinfomax-graphsage.ipynb.

The output is written as dgi_* CSV files that the backend loads at startup — for example dgi_sage_abakan_5_5_5_relu_relu_relu_200e_mean_pool_0.0114.csv under backend/app/data/. The filename encodes the GraphSAGE layer sizes, activations, epochs, and aggregation used to train it.

Auxiliary scripts#

Where these outputs go#

ArtifactConsumed by
Road graphsGraphormer PyG datasets + backend igraph graphs (dijkstra.pickle, graph_omsk.pkl)
dgi_* CSV embeddingsBackend neural ETA (FFNet)
meteoData.csvBackend ETA feature vector
Per-edge weight listsBackend routing — see the weight contract

See Data Assets for where each of these files must live on disk to run the services.