Papers › LibCity: A Unified Library Towards Efficient and Comprehensive Urban Spatial-Temporal...

LibCity: A Unified Library Towards Efficient and Comprehensive Urban Spatial-Temporal Prediction

27 Apr 2023arXiv:2304.14343archive 2025-07-28

Jiawei Jiang, Chengkai Han, Wenjun Jiang, Wayne Xin Zhao, Jingyuan Wang

As deep learning technology advances and more urban spatial-temporal data accumulates, an increasing number of deep learning models are being proposed to solve urban spatial-temporal prediction problems. However, there are limitations in the existing field, including open-source data being in various formats and difficult to use, few papers making their code and data openly available, and open-source models often using different frameworks and platforms, making comparisons challenging. A standardized framework is urgently needed to implement and evaluate these methods. To address these issues, we propose LibCity, an open-source library that offers researchers a credible experimental tool and a convenient development framework. In this library, we have reproduced 65 spatial-temporal prediction models and collected 55 spatial-temporal datasets, allowing researchers to conduct comprehensive experiments conveniently. By enabling fair model comparisons, designing a unified data storage format, and simplifying the process of developing new models, LibCity is poised to make significant contributions to the spatial-temporal prediction field.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 25 code samples harvested from 2 repositories linked to this paper: 22 ran (of which 0 constructed an object rather than computing a result; 20 with no instrument failure: 0 honoured, 0 violated, 20 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified. Where Syntology's instrument failed: 2 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: official repository: 25 samples from 2 repositories, 22 ran (20 with no instrument failure; 2 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-24 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

libcity/bigscity-libcity-datasets officialmentioned in papermentioned on GitHubApache-2.0Syntology: 16 samples, 13 ran (0 instrument-failed) · 3 unverified report
libcity/bigscity-libcity officialmentioned on GitHubpytorchApache-2.0Syntology: 9 samples, 9 ran (2 instrument-failed) · 0 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

25 samples harvested: 22 ran (of which 0 constructed an object rather than computing a result; 20 with no instrument failure: 0 honoured, 0 violated, 20 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

2ran · our draft was wrong
20ran
3unverified

Licence: 2 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. For 2 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

libcity/bigscity-libcity-datasets official repository 16 samples, 13 ran (0 instrument-failed) · 3 unverified
convert in 76 papers bj_traj.py ran fingerprinted Apache-2.0 (permissive) · 6484aba9db44e9b8 · report fixture: signature x:int/0/int · returned str · level recorded 2026-09-25
find_useful_features bj_roadmap_edge.py ran Apache-2.0 (permissive) · c7a399cba0192196 · report fixture: signature feature_list:list/1/str, json_obj:list/1/dict · returned list · level recorded 2026-09-25
get_data_url_Q bikedc.py ran Apache-2.0 (permissive) · 0099f47352ee0476 · report fixture: signature input_dir_flow:str/0/str, start_year:int/0/int, start_month:int/0/int, end_year:int/0/int, end_month:int/0/int · returned list · level recorded 2026-09-25
get_data_url_month bikedc.py ran Apache-2.0 (permissive) · 2ee61bfad6b79126 · report fixture: signature input_dir_flow:str/0/str, start_year:int/0/int, start_month:int/0/int, end_year:int/0/int, end_month:int/0/int · returned list · level recorded 2026-09-25
get_data_url_year bikedc.py ran Apache-2.0 (permissive) · 20f504432fc2ee4f · report fixture: signature input_dir_flow:str/0/str, start_year:int/0/int, start_month:int/0/int, end_year:int/0/int, end_month:int/0/int · returned list · level recorded 2026-09-26
get_highway_to_num bj_roadmap_edge.py ran Apache-2.0 (permissive) · 57cbd8e62f2e6798 · report fixture: signature json_obj:list/1/dict, feature:str/0/str · returned dict · level recorded 2026-09-25
handle_point_geo austinride.py ran Apache-2.0 (permissive) · 728037670d07ddc5 · report fixture: signature df:DataFrame/0/? · returned DataFrame · level recorded 2026-09-25
id_to_time_10min beijing_subway.py ran fingerprinted Apache-2.0 (permissive) · bf191031adaca863 · report fixture: signature id:int/0/int · returned str · level recorded 2026-09-25
id_to_time_15min beijing_subway.py ran fingerprinted Apache-2.0 (permissive) · 4c7e781473ac2c4a · report fixture: signature id:int/0/int · returned str · level recorded 2026-09-26
id_to_time_30min beijing_subway.py ran fingerprinted Apache-2.0 (permissive) · f24dac473bb249f5 · report fixture: signature id:int/0/int · returned str · level recorded 2026-09-25
judge_id austinride.py ran Apache-2.0 (permissive) · 608e6aa23b74f163 · report fixture: signature value:float/0/float, dividing_points:list/1/float, equally:bool/0/bool · returned int · level recorded 2026-09-26
partition_to_grid austinride.py ran Apache-2.0 (permissive) · 3ca0474dd60a6501 · report fixture: signature point_geo:DataFrame/0/?, row_num:int/0/int, col_num:int/0/int · returned tuple · level recorded 2026-09-25
weight_matrix Multi_Graph_Demand.py ran Apache-2.0 (permissive) · cf6259ac473d9fe0 · report fixture: signature file_path:str/0/str, sigma2:float/0/float, epsilon:float/0/float, scaling:bool/0/bool · returned ndarray · level recorded 2026-09-25
handle_point_geo bikechi.py unverified Apache-2.0 (permissive) · 58d371f7e8a73575 · report
select_lat bikechi.py unverified Apache-2.0 (permissive) · 7259fe4aed6651ee · report
select_lon bikechi.py unverified Apache-2.0 (permissive) · 33a5b720eef76c68 · report
libcity/bigscity-libcity official repository 9 samples, 9 ran (2 instrument-failed) · 0 unverified
build_sparse_matrix libcity/model/utils.py ran Apache-2.0 (permissive) · c7bc684a945c2719 · report fixture: signature device:str/0/str, lap:coo_matrix/2/float · returned Tensor · level recorded 2026-09-25
get_cheb_polynomial libcity/model/utils.py ran Apache-2.0 (permissive) · 0366ff346b2936b5 · report fixture: signature l_tilde:coo_matrix/2/float, k:int/0/int · returned list · level recorded 2026-09-25
get_supports_matrix libcity/model/utils.py ran Apache-2.0 (permissive) · 45ca7fb0a42154d5 · report fixture: signature adj_mx:ndarray/2/float, filter_type:str/0/str, undirected:bool/0/bool · returned list · level recorded 2026-09-25
log_cosh_loss libcity/model/loss.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) here; the stored copy is pointer only · 8b1fe12a843654ca · report fixture: signature preds:Tensor/2/float, labels:Tensor/2/float · returned Tensor · level recorded 2026-09-24
mae in 41 papers
census: 4 implementations from 6 papers, 3 distinct outputs across 3 buckets, one shared input per bucket
libcity/evaluator/eval_funcs.py ran fingerprinted Apache-2.0 (permissive) · dd2102b030c94016 · report fixture: signature loc_pred:ndarray/2/float, loc_true:ndarray/2/float · returned float64 · level recorded 2026-09-25
masked_mae_loss in 7 papers libcity/model/loss.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) here; the stored copy is pointer only · 2a82a90d91ced4b6 · report fixture: signature y_pred:Tensor/2/float, y_true:Tensor/2/float · returned Tensor · level recorded 2026-09-24
masked_mae_torch libcity/model/loss.py ran Apache-2.0 (permissive) · 6c16b4c86ecbcba3 · report fixture: signature preds:Tensor/2/float, labels:Tensor/2/float, null_val:float/0/float, reduce:bool/0/bool, mask_val:NoneType/0/? · returned Tensor · level recorded 2026-09-25
mse in 78 papers
census: 5 implementations from 6 papers, 4 distinct outputs across 3 buckets, one shared input per bucket
libcity/evaluator/eval_funcs.py ran fingerprinted Apache-2.0 (permissive) · 96dff086a8a8530c · report fixture: signature loc_pred:ndarray/1/float, loc_true:ndarray/1/float · returned float64 · level recorded 2026-09-25
rmse in 44 papers libcity/evaluator/eval_funcs.py ran fingerprinted Apache-2.0 (permissive) · 39ddf715e408db82 · report fixture: signature loc_pred:ndarray/2/float, loc_true:ndarray/2/float · returned float64 · level recorded 2026-09-25

Tasks

Prediction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections