<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>TransTTE</title><link>https://vlzm.github.io/TransTTE/</link><description>Recent content on TransTTE</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://vlzm.github.io/TransTTE/index.xml" rel="self" type="application/rss+xml"/><item><title>API</title><link>https://vlzm.github.io/TransTTE/docs/reference/api/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/reference/api/</guid><description>&lt;h1 id="api-reference"&gt;API Reference&lt;a class="anchor" href="#api-reference"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;TransTTE exposes two HTTP services. In normal operation they do &lt;strong&gt;not&lt;/strong&gt; call each other
live — the Graphormer service writes per-edge weights to pickles once, and the backend
reads them. See the &lt;a href="https://vlzm.github.io/TransTTE/docs/architecture/weight-contract/"&gt;weight-handoff contract&lt;/a&gt;. The endpoints below are what a client (the map
UI, or your own script) actually talks to.&lt;/p&gt;
&lt;p&gt;Both services are FastAPI apps that bind to &lt;code&gt;0.0.0.0:80&lt;/code&gt; regardless of what the Dockerfile
&lt;code&gt;EXPOSE&lt;/code&gt;s or &lt;code&gt;settings.py&lt;/code&gt; names — see &lt;a href="https://vlzm.github.io/TransTTE/docs/running/data-assets/"&gt;Data &amp;amp; Model Assets&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Backend</title><link>https://vlzm.github.io/TransTTE/docs/running/backend/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/running/backend/</guid><description>&lt;h1 id="running-the-backend"&gt;Running the Backend&lt;a class="anchor" href="#running-the-backend"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The backend is the &lt;strong&gt;CPU service + web UI&lt;/strong&gt;. It loads the precomputed edge weights and the
road graphs, answers &lt;code&gt;POST /get_path&lt;/code&gt;, and serves the map at &lt;code&gt;GET /&lt;/code&gt;. See
&lt;a href="https://vlzm.github.io/TransTTE/docs/architecture/backend-service/"&gt;Backend Service&lt;/a&gt; for what it does
internally.&lt;/p&gt;
&lt;blockquote class='book-hint '&gt;
&lt;p&gt;Make sure the &lt;a href="https://vlzm.github.io/TransTTE/docs/running/data-assets/"&gt;data assets&lt;/a&gt; are in
&lt;code&gt;backend/app/data/&lt;/code&gt; first — the backend loads graphs, embeddings, and weight pickles at
startup and will fail on a missing file.&lt;/p&gt;
&lt;/blockquote&gt;&lt;h2 id="run-it-directly-python"&gt;Run it directly (Python)&lt;a class="anchor" href="#run-it-directly-python"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The backend is a plain FastAPI app; the entrypoint is
&lt;a href="https://github.com/vlzm/TransTTE/blob/main/backend/start.sh"&gt;&lt;code&gt;start.sh&lt;/code&gt;&lt;/a&gt;, which just
runs the app:&lt;/p&gt;</description></item><item><title>Data Preparation</title><link>https://vlzm.github.io/TransTTE/docs/training/data-preparation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/training/data-preparation/</guid><description>&lt;h1 id="data-preparation"&gt;Data Preparation&lt;a class="anchor" href="#data-preparation"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Everything the model and the backend consume is produced offline by the notebooks and
scripts under &lt;code&gt;preprocessing/&lt;/code&gt; and &lt;code&gt;algorithms/&lt;/code&gt;. These are &lt;strong&gt;research artifacts&lt;/strong&gt;, separate
from the two serving apps — you do not need them to run the demo, only to rebuild the
datasets or retrain. The &lt;a href="https://vlzm.github.io/TransTTE/docs/datasets/"&gt;Datasets&lt;/a&gt; page covers the
resulting numbers; this page covers how they are built.&lt;/p&gt;
&lt;h2 id="building-the-road-graphs-and-features"&gt;Building the road graphs and features&lt;a class="anchor" href="#building-the-road-graphs-and-features"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Notebook&lt;/th&gt;
					&lt;th&gt;Produces&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;a href="https://github.com/vlzm/TransTTE/blob/main/preprocessing/graph_preprocessing.ipynb"&gt;&lt;code&gt;preprocessing/graph_preprocessing.ipynb&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
					&lt;td&gt;The city road graphs (nodes / edges) fed to Graphormer and to igraph.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;a href="https://github.com/vlzm/TransTTE/blob/main/preprocessing/ETA_additional_features_processing.ipynb"&gt;&lt;code&gt;preprocessing/ETA_additional_features_processing.ipynb&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
					&lt;td&gt;The extra ETA features (geometry, time-of-day, etc.).&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;a href="https://github.com/vlzm/TransTTE/blob/main/preprocessing/gismeteo_parser.ipynb"&gt;&lt;code&gt;preprocessing/gismeteo_parser.ipynb&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
					&lt;td&gt;Weather data (feeds &lt;code&gt;meteoData.csv&lt;/code&gt;).&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Trip filtering (rebuild count, min/max length, total time) and the two targets — real
travel time and real trip length — are described on the
&lt;a href="https://vlzm.github.io/TransTTE/docs/datasets/"&gt;Datasets&lt;/a&gt; page.&lt;/p&gt;</description></item><item><title>Graphormer Service</title><link>https://vlzm.github.io/TransTTE/docs/architecture/graphormer-service/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/architecture/graphormer-service/</guid><description>&lt;h1 id="graphormer-service"&gt;Graphormer Service&lt;a class="anchor" href="#graphormer-service"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The Graphormer service (&lt;code&gt;graphormer/&lt;/code&gt;) is the &lt;strong&gt;GPU side&lt;/strong&gt; of the pipeline. It loads a
trained Graphormer checkpoint per city and produces exactly one travel-time weight for
every edge of that city&amp;rsquo;s road graph. This is the expensive step, and it is normally run
&lt;strong&gt;once&lt;/strong&gt; — the results are cached as pickle files that the &lt;a href="https://vlzm.github.io/TransTTE/docs/architecture/backend-service/"&gt;backend&lt;/a&gt; reads at startup.&lt;/p&gt;
&lt;p&gt;Source:
&lt;a href="https://github.com/vlzm/TransTTE/blob/main/graphormer/app/app.py"&gt;&lt;code&gt;graphormer/app/app.py&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="the-endpoint"&gt;The endpoint&lt;a class="anchor" href="#the-endpoint"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;POST /get_weights → {&amp;#34;abakan&amp;#34;: [w0, w1, ...], &amp;#34;omsk&amp;#34;: [w0, w1, ...]}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The response is a JSON object with one key per city. Each value is a &lt;strong&gt;flat list of
floats&lt;/strong&gt; — one weight per edge, in graph edge order. There is no request body. A
&lt;code&gt;GET /&lt;/code&gt; returns &lt;code&gt;{&amp;quot;ping&amp;quot;: &amp;quot;pong&amp;quot;}&lt;/code&gt; as a liveness check.&lt;/p&gt;</description></item><item><title>Problem Formulation</title><link>https://vlzm.github.io/TransTTE/docs/research/problem-formulation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/research/problem-formulation/</guid><description>&lt;h1 id="problem-formulation"&gt;Problem Formulation&lt;a class="anchor" href="#problem-formulation"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="the-tte-task"&gt;The TTE task&lt;a class="anchor" href="#the-tte-task"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The paper states the task compactly:&lt;/p&gt;
&lt;blockquote class='book-hint '&gt;
&lt;p&gt;&lt;strong&gt;Task.&lt;/strong&gt; Given an origin, a destination, and a departure time, our goal is to estimate
the trip duration using the set of historical trip dataset \(X\) and the underlying
road network \(G\).&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;So a single prediction consumes three inputs and produces one number:&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Input&lt;/th&gt;
					&lt;th&gt;Meaning&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;strong&gt;Origin&lt;/strong&gt;&lt;/td&gt;
					&lt;td&gt;Start location of the trip&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;strong&gt;Destination&lt;/strong&gt;&lt;/td&gt;
					&lt;td&gt;End location of the trip&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;strong&gt;Departure time&lt;/strong&gt;&lt;/td&gt;
					&lt;td&gt;When the trip begins (carries the temporal/traffic context)&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span&gt;\[ \text{origin},\ \text{destination},\ \text{departure time}
\;\longrightarrow\;
\hat{t}\ \text{(estimated duration)} \]&lt;/span&gt;&lt;h2 id="the-two-given-structures"&gt;The two given structures&lt;a class="anchor" href="#the-two-given-structures"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The estimate is grounded in two things the model is allowed to use:&lt;/p&gt;</description></item><item><title>Backend Service</title><link>https://vlzm.github.io/TransTTE/docs/architecture/backend-service/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/architecture/backend-service/</guid><description>&lt;h1 id="backend-service"&gt;Backend Service&lt;a class="anchor" href="#backend-service"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The backend (&lt;code&gt;backend/&lt;/code&gt;) is the &lt;strong&gt;CPU side&lt;/strong&gt; plus the web UI. It loads the precomputed
edge weights and answers routing requests: given two coordinates, it returns a route and
an ETA for each available &lt;a href="https://vlzm.github.io/TransTTE/docs/architecture/routing-objectives/"&gt;routing objective&lt;/a&gt;. It also serves the interactive map at
&lt;code&gt;GET /&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Source:
&lt;a href="https://github.com/vlzm/TransTTE/blob/main/backend/app/app.py"&gt;&lt;code&gt;backend/app/app.py&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="the-endpoint"&gt;The endpoint&lt;a class="anchor" href="#the-endpoint"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;POST /get_path body: {start_lat, start_lon, end_lat, end_lon}
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; → [ {path: [...], eta: &amp;lt;seconds&amp;gt;, type: &amp;#34;&amp;lt;objective&amp;gt;&amp;#34;}, ... ]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;GET / → the map UI (index.html)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Coordinates in the request body are always &lt;code&gt;(lat, lon)&lt;/code&gt;. The response is a &lt;strong&gt;list&lt;/strong&gt; — one
entry per weight variant, each tagged by its &lt;code&gt;type&lt;/code&gt;. Endpoint and payload details live in
the &lt;a href="https://vlzm.github.io/TransTTE/docs/reference/api/"&gt;API reference&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Glossary</title><link>https://vlzm.github.io/TransTTE/docs/reference/glossary/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/reference/glossary/</guid><description>&lt;h1 id="glossary"&gt;Glossary&lt;a class="anchor" href="#glossary"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Terms used across these docs, the paper, and the code, in one place.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TTE — Travel Time Estimation.&lt;/strong&gt;
Predicting how long a trip along a road network will take. The task this project targets;
also the &amp;ldquo;T&amp;rdquo; in TransTTE. Given an origin, a destination, and a departure time, estimate
the trip duration. See &lt;a href="https://vlzm.github.io/TransTTE/docs/research/problem-formulation/"&gt;Problem Formulation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ETA — Estimated Time of Arrival.&lt;/strong&gt;
The predicted duration (in seconds) returned for a route. In this system the ETA is
computed one of two ways — a neural net or a weighted sum of edge weights. See &lt;a href="https://vlzm.github.io/TransTTE/docs/architecture/eta-paths/"&gt;Two ETA
Paths&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Graphormer</title><link>https://vlzm.github.io/TransTTE/docs/running/graphormer/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/running/graphormer/</guid><description>&lt;h1 id="running-graphormer"&gt;Running Graphormer&lt;a class="anchor" href="#running-graphormer"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The Graphormer service is the &lt;strong&gt;GPU side&lt;/strong&gt;: it loads a trained checkpoint per city and
produces one travel-time weight per road-graph edge, served at &lt;code&gt;POST /get_weights&lt;/code&gt;. This is
expensive and normally run &lt;strong&gt;once&lt;/strong&gt; — the backend then consumes the cached result. See
&lt;a href="https://vlzm.github.io/TransTTE/docs/architecture/graphormer-service/"&gt;Graphormer Service&lt;/a&gt; for the
internals.&lt;/p&gt;
&lt;blockquote class='book-hint '&gt;
&lt;p&gt;This service needs a &lt;strong&gt;GPU&lt;/strong&gt; and the trained checkpoints under
&lt;code&gt;graphormer/app/models/{abakan,omsk}/&lt;/code&gt;. Get them from
&lt;a href="https://vlzm.github.io/TransTTE/docs/running/data-assets/"&gt;Data Assets&lt;/a&gt; first.&lt;/p&gt;
&lt;/blockquote&gt;&lt;h2 id="build-and-run-docker"&gt;Build and run (Docker)&lt;a class="anchor" href="#build-and-run-docker"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Docker is the recommended path — the dependency stack (torch 1.9.1+cu111,
torch-geometric 1.7.2, dgl 0.7.2, and a source build of fairseq) is finicky to reproduce by
hand. The &lt;a href="https://github.com/vlzm/TransTTE/blob/main/graphormer/Dockerfile"&gt;&lt;code&gt;Dockerfile&lt;/code&gt;&lt;/a&gt;
installs the pinned packages and runs
&lt;a href="https://github.com/vlzm/TransTTE/blob/main/graphormer/app/install.sh"&gt;&lt;code&gt;install.sh&lt;/code&gt;&lt;/a&gt;,
which clones and source-builds &lt;strong&gt;fairseq&lt;/strong&gt; into &lt;code&gt;graphormer_repo/&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Related Work</title><link>https://vlzm.github.io/TransTTE/docs/research/related-work/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/research/related-work/</guid><description>&lt;h1 id="related-work"&gt;Related Work&lt;a class="anchor" href="#related-work"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="two-families-of-tte-methods"&gt;Two families of TTE methods&lt;a class="anchor" href="#two-families-of-tte-methods"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The paper divides existing TTE approaches into two categories, distinguished by &lt;em&gt;how much
of the route&lt;/em&gt; they reason about:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Segment-wise methods.&lt;/strong&gt; ETA is built by extracting and summing the traversal time of
each individual segment of the path. Because each segment is treated on its own, these
models &lt;strong&gt;do not capture global properties of the path&lt;/strong&gt; — the way segments interact,
the overall shape of the route, or path-level context.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Whole-path methods.&lt;/strong&gt; ETA is computed from the trip path taken &lt;em&gt;as a whole&lt;/em&gt;. Results
from this class define the mainstream of current TTE research, and it is the family
TransTTE belongs to.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;TransTTE pushes the whole-path idea further by using a &lt;strong&gt;graph transformer&lt;/strong&gt;
(&lt;a href="https://vlzm.github.io/TransTTE/docs/research/method/"&gt;Graphormer&lt;/a&gt;), so that a route&amp;rsquo;s global
structure is available to the model through self-attention rather than being flattened
into a per-segment sum.&lt;/p&gt;</description></item><item><title>Data Assets</title><link>https://vlzm.github.io/TransTTE/docs/running/data-assets/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/running/data-assets/</guid><description>&lt;h1 id="data-assets"&gt;Data Assets&lt;a class="anchor" href="#data-assets"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Neither service runs without large binary assets that are &lt;strong&gt;not in git&lt;/strong&gt; — they are
downloaded separately. When a load fails, it is almost always a &lt;strong&gt;missing or renamed asset&lt;/strong&gt;
under &lt;code&gt;data/&lt;/code&gt; or &lt;code&gt;models/&lt;/code&gt;, not a code bug. File paths are hardcoded relative to each
script&amp;rsquo;s location.&lt;/p&gt;
&lt;h2 id="what-to-download"&gt;What to download&lt;a class="anchor" href="#what-to-download"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Bundle&lt;/th&gt;
					&lt;th&gt;Download&lt;/th&gt;
					&lt;th&gt;Extract to&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;Backend data&lt;/td&gt;
					&lt;td&gt;&lt;a href="https://disk.yandex.ru/d/NHj3ukteUGn-dA"&gt;Yandex.Disk&lt;/a&gt;&lt;/td&gt;
					&lt;td&gt;&lt;code&gt;backend/app/data/&lt;/code&gt;&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Graphormer models&lt;/td&gt;
					&lt;td&gt;&lt;a href="https://disk.yandex.ru/d/rQCIJs_7Q7Li6g"&gt;Yandex.Disk&lt;/a&gt;&lt;/td&gt;
					&lt;td&gt;&lt;code&gt;graphormer/app/models/&lt;/code&gt;&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="backend-data-backendappdata"&gt;Backend data (&lt;code&gt;backend/app/data/&lt;/code&gt;)&lt;a class="anchor" href="#backend-data-backendappdata"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;File / folder&lt;/th&gt;
					&lt;th&gt;What it is&lt;/th&gt;
					&lt;th&gt;Used by&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;SimpleTTE.pth&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;&lt;code&gt;FFNet&lt;/code&gt; weights (152-input feed-forward net)&lt;/td&gt;
					&lt;td&gt;Neural ETA (Abakan non-Graphormer)&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;dijkstra.pickle&lt;/code&gt;, &lt;code&gt;graph_omsk.pkl&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;igraph road graphs&lt;/td&gt;
					&lt;td&gt;Shortest-path routing&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;clear_nodes.pkl&lt;/code&gt;, &lt;code&gt;clear_nodes_omsk.pkl&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Node coordinate tables&lt;/td&gt;
					&lt;td&gt;Snapping endpoints to nodes (&lt;code&gt;BallTree&lt;/code&gt;)&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;balltree.pkl&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Prebuilt haversine &lt;code&gt;BallTree&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Nearest-node lookup&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;dgi_*.csv&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;DGI + GraphSAGE node embeddings&lt;/td&gt;
					&lt;td&gt;Neural ETA feature vector&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;meteoData.csv&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Weather data&lt;/td&gt;
					&lt;td&gt;Neural ETA feature vector&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;graphormer_weights/&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;&lt;code&gt;weights_abakan.pickle&lt;/code&gt;, &lt;code&gt;weights_omsk.pickle&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;&lt;code&gt;graphormer_weights&lt;/code&gt; route variant&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;weights_abakan/&lt;/code&gt;, &lt;code&gt;weights_omsk/&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Per-objective &lt;code&gt;*.pkl&lt;/code&gt; weight lists (dist / green / hist / …)&lt;/td&gt;
					&lt;td&gt;One route &lt;code&gt;type&lt;/code&gt; each&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Each file in &lt;code&gt;weights_{city}/&lt;/code&gt; is an &lt;strong&gt;edge-aligned weight list&lt;/strong&gt; that becomes a separate
routing objective in the &lt;code&gt;/get_path&lt;/code&gt; response — see
&lt;a href="https://vlzm.github.io/TransTTE/docs/architecture/routing-objectives/"&gt;Routing Objectives&lt;/a&gt;. The
&lt;code&gt;graphormer_weights/&lt;/code&gt; pickles are the output of the
&lt;a href="https://vlzm.github.io/TransTTE/docs/running/graphormer/"&gt;Graphormer service&lt;/a&gt;; the ordering must match the
graph&amp;rsquo;s edge order (the &lt;a href="https://vlzm.github.io/TransTTE/docs/architecture/weight-contract/"&gt;weight contract&lt;/a&gt;).&lt;/p&gt;</description></item><item><title>Method</title><link>https://vlzm.github.io/TransTTE/docs/research/method/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/research/method/</guid><description>&lt;h1 id="method"&gt;Method&lt;a class="anchor" href="#method"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="why-a-transformer-for-graphs"&gt;Why a transformer for graphs&lt;a class="anchor" href="#why-a-transformer-for-graphs"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The transformer architecture has become dominant in NLP and computer vision, yet on
graph-level prediction leaderboards it had &lt;em&gt;not&lt;/em&gt; matched mainstream GNN variants. TransTTE
asks the question directly: &lt;strong&gt;can a transformer perform well for graph representation
learning in the TTE task?&lt;/strong&gt; Its answer builds on &lt;strong&gt;Graphormer&lt;/strong&gt; (&lt;a href="https://arxiv.org/abs/2106.05234"&gt;Ying et al., 2021&lt;/a&gt;),
which injects graph structure into a standard transformer through a few structural
encodings. TransTTE adopts the two graph-oriented aspects below.&lt;/p&gt;</description></item><item><title>Weight Contract</title><link>https://vlzm.github.io/TransTTE/docs/architecture/weight-contract/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/architecture/weight-contract/</guid><description>&lt;h1 id="weight-handoff-contract"&gt;Weight Handoff Contract&lt;a class="anchor" href="#weight-handoff-contract"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The Graphormer service and the backend communicate through &lt;strong&gt;pickled weight lists&lt;/strong&gt;, not
live HTTP, in normal operation. This page describes that handoff and the single invariant
that makes it work.&lt;/p&gt;
&lt;h2 id="the-artifacts"&gt;The artifacts&lt;a class="anchor" href="#the-artifacts"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The Graphormer service writes (and can serve) two pickles:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;weights_abakan.pickle # one float per edge of the Abakan road graph
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;weights_omsk.pickle # one float per edge of the Omsk road graph&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The backend reads them from
&lt;code&gt;backend/app/data/graphormer_weights/&lt;/code&gt; and exposes them as the &lt;code&gt;graphormer_weights&lt;/code&gt;
route variant. Each pickle is just a flat list of floats.&lt;/p&gt;</description></item><item><title>ETA Paths</title><link>https://vlzm.github.io/TransTTE/docs/architecture/eta-paths/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/architecture/eta-paths/</guid><description>&lt;h1 id="two-eta-paths"&gt;Two ETA Paths&lt;a class="anchor" href="#two-eta-paths"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Once the backend has a route, it has to turn that route into an &lt;strong&gt;estimated time of
arrival&lt;/strong&gt;. It does this in one of two ways, depending on the weight variant. Know which one
you are touching — they share no code.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;return_path&lt;/code&gt; in
&lt;a href="https://github.com/vlzm/TransTTE/blob/main/backend/app/app.py"&gt;&lt;code&gt;backend/app/app.py&lt;/code&gt;&lt;/a&gt;
picks the path per variant:&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Variant&lt;/th&gt;
					&lt;th&gt;ETA method&lt;/th&gt;
					&lt;th&gt;Where&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;Abakan non-Graphormer (&lt;code&gt;dist&lt;/code&gt;, &lt;code&gt;green&lt;/code&gt;, &lt;code&gt;hist&lt;/code&gt;, …)&lt;/td&gt;
					&lt;td&gt;Neural ETA (&lt;code&gt;FFNet&lt;/code&gt;)&lt;/td&gt;
					&lt;td&gt;&lt;code&gt;ETAInf.forward&lt;/code&gt;&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Abakan &lt;code&gt;graphormer_weights&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;Weighted sum&lt;/td&gt;
					&lt;td&gt;&lt;code&gt;get_shortest_path_grph&lt;/code&gt;&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;All Omsk variants (incl. &lt;code&gt;graphormer_weights&lt;/code&gt;)&lt;/td&gt;
					&lt;td&gt;Weighted sum&lt;/td&gt;
					&lt;td&gt;&lt;code&gt;get_shortest_path_grph&lt;/code&gt;&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="1-neural-eta--ffnet"&gt;1. Neural ETA — &lt;code&gt;FFNet&lt;/code&gt;&lt;a class="anchor" href="#1-neural-eta--ffnet"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;For the Abakan non-Graphormer variants the ETA comes from a small feed-forward network,
&lt;strong&gt;&lt;code&gt;FFNet&lt;/code&gt;&lt;/strong&gt; (152 inputs → 128 → 1, ReLU), defined in
&lt;a href="https://github.com/vlzm/TransTTE/blob/main/backend/app/ml.py"&gt;&lt;code&gt;ml.py&lt;/code&gt;&lt;/a&gt; and driven
by &lt;code&gt;ETAInf.forward&lt;/code&gt; in
&lt;a href="https://github.com/vlzm/TransTTE/blob/main/backend/app/eta_inference.py"&gt;&lt;code&gt;eta_inference.py&lt;/code&gt;&lt;/a&gt;.
The 152-dimensional input vector is assembled per request from:&lt;/p&gt;</description></item><item><title>Results</title><link>https://vlzm.github.io/TransTTE/docs/research/results/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/research/results/</guid><description>&lt;h1 id="results"&gt;Results&lt;a class="anchor" href="#results"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="comparison-with-baselines"&gt;Comparison with baselines&lt;a class="anchor" href="#comparison-with-baselines"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;TransTTE is compared against the three &lt;a href="https://vlzm.github.io/TransTTE/docs/research/related-work/"&gt;baselines&lt;/a&gt;
(GBDT, MURAT, WDR) on both cities, reporting &lt;strong&gt;MAE&lt;/strong&gt; and &lt;strong&gt;RMSE&lt;/strong&gt; on train and test splits.
Lower is better; the &lt;strong&gt;best test MAE per city is in bold&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Omsk&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Model&lt;/th&gt;
					&lt;th style="text-align: right"&gt;Train MAE&lt;/th&gt;
					&lt;th style="text-align: right"&gt;Train RMSE&lt;/th&gt;
					&lt;th style="text-align: right"&gt;Test MAE&lt;/th&gt;
					&lt;th style="text-align: right"&gt;Test RMSE&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;GBDT&lt;/td&gt;
					&lt;td style="text-align: right"&gt;403.921&lt;/td&gt;
					&lt;td style="text-align: right"&gt;582.011&lt;/td&gt;
					&lt;td style="text-align: right"&gt;408.644&lt;/td&gt;
					&lt;td style="text-align: right"&gt;573.559&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;MURAT&lt;/td&gt;
					&lt;td style="text-align: right"&gt;279.616&lt;/td&gt;
					&lt;td style="text-align: right"&gt;438.228&lt;/td&gt;
					&lt;td style="text-align: right"&gt;286.491&lt;/td&gt;
					&lt;td style="text-align: right"&gt;443.397&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;WDR&lt;/td&gt;
					&lt;td style="text-align: right"&gt;311.581&lt;/td&gt;
					&lt;td style="text-align: right"&gt;440.511&lt;/td&gt;
					&lt;td style="text-align: right"&gt;336.756&lt;/td&gt;
					&lt;td style="text-align: right"&gt;487.876&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;strong&gt;TransTTE&lt;/strong&gt;&lt;/td&gt;
					&lt;td style="text-align: right"&gt;101.381&lt;/td&gt;
					&lt;td style="text-align: right"&gt;387.241&lt;/td&gt;
					&lt;td style="text-align: right"&gt;&lt;strong&gt;105.464&lt;/strong&gt;&lt;/td&gt;
					&lt;td style="text-align: right"&gt;261.103&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Abakan&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Model&lt;/th&gt;
					&lt;th style="text-align: right"&gt;Train MAE&lt;/th&gt;
					&lt;th style="text-align: right"&gt;Train RMSE&lt;/th&gt;
					&lt;th style="text-align: right"&gt;Test MAE&lt;/th&gt;
					&lt;th style="text-align: right"&gt;Test RMSE&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;GBDT&lt;/td&gt;
					&lt;td style="text-align: right"&gt;244.119&lt;/td&gt;
					&lt;td style="text-align: right"&gt;449.250&lt;/td&gt;
					&lt;td style="text-align: right"&gt;248.862&lt;/td&gt;
					&lt;td style="text-align: right"&gt;399.534&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;MURAT&lt;/td&gt;
					&lt;td style="text-align: right"&gt;179.037&lt;/td&gt;
					&lt;td style="text-align: right"&gt;285.003&lt;/td&gt;
					&lt;td style="text-align: right"&gt;185.153&lt;/td&gt;
					&lt;td style="text-align: right"&gt;286.934&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;WDR&lt;/td&gt;
					&lt;td style="text-align: right"&gt;173.684&lt;/td&gt;
					&lt;td style="text-align: right"&gt;285.132&lt;/td&gt;
					&lt;td style="text-align: right"&gt;182.296&lt;/td&gt;
					&lt;td style="text-align: right"&gt;293.551&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;strong&gt;TransTTE&lt;/strong&gt;&lt;/td&gt;
					&lt;td style="text-align: right"&gt;81.048&lt;/td&gt;
					&lt;td style="text-align: right"&gt;285.032&lt;/td&gt;
					&lt;td style="text-align: right"&gt;&lt;strong&gt;83.616&lt;/strong&gt;&lt;/td&gt;
					&lt;td style="text-align: right"&gt;168.421&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;TransTTE achieves the best travel-time error on both datasets — on test &lt;strong&gt;MAE&lt;/strong&gt; it beats
every baseline by a wide margin (≈ 105.5 on Omsk, ≈ 83.6 on Abakan), and it also leads on
test RMSE.&lt;/p&gt;</description></item><item><title>Routing Objectives</title><link>https://vlzm.github.io/TransTTE/docs/architecture/routing-objectives/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://vlzm.github.io/TransTTE/docs/architecture/routing-objectives/</guid><description>&lt;h1 id="routing-objectives"&gt;Routing Objectives&lt;a class="anchor" href="#routing-objectives"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;A single &lt;code&gt;POST /get_path&lt;/code&gt; call returns &lt;strong&gt;several routes&lt;/strong&gt;, one per &lt;em&gt;objective&lt;/em&gt;. An
objective is nothing more than a per-edge weight list: change what the weights mean and you
change what &amp;ldquo;shortest&amp;rdquo; optimizes for — fastest, shortest distance, greenest, most
historic, and so on.&lt;/p&gt;
&lt;h2 id="where-they-come-from"&gt;Where they come from&lt;a class="anchor" href="#where-they-come-from"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The backend loads every objective for a city from a directory at startup:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; weight &lt;span style="color:#f92672"&gt;in&lt;/span&gt; sorted((BASE &lt;span style="color:#f92672"&gt;/&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#39;data/weights_abakan&amp;#39;&lt;/span&gt;)&lt;span style="color:#f92672"&gt;.&lt;/span&gt;iterdir()):
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#39;.pkl&amp;#39;&lt;/span&gt; &lt;span style="color:#f92672"&gt;in&lt;/span&gt; weight&lt;span style="color:#f92672"&gt;.&lt;/span&gt;name:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; weights_dict_abakan[weight&lt;span style="color:#f92672"&gt;.&lt;/span&gt;name&lt;span style="color:#f92672"&gt;.&lt;/span&gt;split(&lt;span style="color:#e6db74"&gt;&amp;#39;.&amp;#39;&lt;/span&gt;)[&lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;]] &lt;span style="color:#f92672"&gt;=&lt;/span&gt; pickle&lt;span style="color:#f92672"&gt;.&lt;/span&gt;load(fd)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;So the &lt;strong&gt;file name (minus extension) becomes the &lt;code&gt;type&lt;/code&gt;&lt;/strong&gt; in the response, and &lt;code&gt;sorted()&lt;/code&gt;
fixes the order. The objectives shipped in the demo data are, for example:&lt;/p&gt;</description></item></channel></rss>