{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/towards-efficient-and-comprehensive-urban-1","title":"LibCity: A Unified Library Towards Efficient and Comprehensive Urban Spatial-Temporal Prediction","arxiv_id":"2304.14343","date":"2023-04-27","proceeding":null,"authors":["Jiawei Jiang","Chengkai Han","Wenjun Jiang","Wayne Xin Zhao","Jingyuan Wang"],"abstract":"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.","url_abs":"https://arxiv.org/abs/2304.14343v7","url_pdf":"https://arxiv.org/pdf/2304.14343v7.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"towards-efficient-and-comprehensive-urban-1","repo_url":"https://github.com/libcity/bigscity-libcity-datasets","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"towards-efficient-and-comprehensive-urban-1","repo_url":"https://github.com/libcity/bigscity-libcity","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"prediction","task_name":"Prediction"}],"methods":[{"method_slug":null,"method_name":"Library"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2304.14343","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2304.14343"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/libcity/bigscity-libcity","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/libcity/bigscity-libcity-datasets","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":2,"unverified":23},"by_repo_kind":{"official":{"samples":25,"ran":2,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"8b1fe12a843654ca","entry":"log_cosh_loss","repo":"libcity/bigscity-libcity","repo_kind":"official","path":"libcity/model/loss.py","file_url":"https://github.com/libcity/bigscity-libcity/blob/HEAD/libcity/model/loss.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8b1fe12a843654ca"}},{"code_sha256_prefix":"2a82a90d91ced4b6","entry":"masked_mae_loss","repo":"libcity/bigscity-libcity","repo_kind":"official","path":"libcity/model/loss.py","file_url":"https://github.com/libcity/bigscity-libcity/blob/HEAD/libcity/model/loss.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2a82a90d91ced4b6"}},{"code_sha256_prefix":"c7bc684a945c2719","entry":"build_sparse_matrix","repo":"libcity/bigscity-libcity","repo_kind":"official","path":"libcity/model/utils.py","file_url":"https://github.com/libcity/bigscity-libcity/blob/HEAD/libcity/model/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c7bc684a945c2719"}},{"code_sha256_prefix":"6484aba9db44e9b8","entry":"convert","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"bj_traj.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/bj_traj.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6484aba9db44e9b8"}},{"code_sha256_prefix":"c7a399cba0192196","entry":"find_useful_features","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"bj_roadmap_edge.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/bj_roadmap_edge.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c7a399cba0192196"}},{"code_sha256_prefix":"0366ff346b2936b5","entry":"get_cheb_polynomial","repo":"libcity/bigscity-libcity","repo_kind":"official","path":"libcity/model/utils.py","file_url":"https://github.com/libcity/bigscity-libcity/blob/HEAD/libcity/model/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0366ff346b2936b5"}},{"code_sha256_prefix":"0099f47352ee0476","entry":"get_data_url_Q","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"bikedc.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/bikedc.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0099f47352ee0476"}},{"code_sha256_prefix":"2ee61bfad6b79126","entry":"get_data_url_month","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"bikedc.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/bikedc.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2ee61bfad6b79126"}},{"code_sha256_prefix":"20f504432fc2ee4f","entry":"get_data_url_year","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"bikedc.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/bikedc.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"20f504432fc2ee4f"}},{"code_sha256_prefix":"57cbd8e62f2e6798","entry":"get_highway_to_num","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"bj_roadmap_edge.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/bj_roadmap_edge.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"57cbd8e62f2e6798"}},{"code_sha256_prefix":"45ca7fb0a42154d5","entry":"get_supports_matrix","repo":"libcity/bigscity-libcity","repo_kind":"official","path":"libcity/model/utils.py","file_url":"https://github.com/libcity/bigscity-libcity/blob/HEAD/libcity/model/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"45ca7fb0a42154d5"}},{"code_sha256_prefix":"728037670d07ddc5","entry":"handle_point_geo","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"austinride.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/austinride.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"728037670d07ddc5"}},{"code_sha256_prefix":"58d371f7e8a73575","entry":"handle_point_geo","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"bikechi.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/bikechi.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"58d371f7e8a73575"}},{"code_sha256_prefix":"bf191031adaca863","entry":"id_to_time_10min","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"beijing_subway.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/beijing_subway.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bf191031adaca863"}},{"code_sha256_prefix":"4c7e781473ac2c4a","entry":"id_to_time_15min","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"beijing_subway.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/beijing_subway.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4c7e781473ac2c4a"}},{"code_sha256_prefix":"f24dac473bb249f5","entry":"id_to_time_30min","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"beijing_subway.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/beijing_subway.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f24dac473bb249f5"}},{"code_sha256_prefix":"608e6aa23b74f163","entry":"judge_id","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"austinride.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/austinride.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"608e6aa23b74f163"}},{"code_sha256_prefix":"dd2102b030c94016","entry":"mae","repo":"libcity/bigscity-libcity","repo_kind":"official","path":"libcity/evaluator/eval_funcs.py","file_url":"https://github.com/libcity/bigscity-libcity/blob/HEAD/libcity/evaluator/eval_funcs.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"dd2102b030c94016"}},{"code_sha256_prefix":"6c16b4c86ecbcba3","entry":"masked_mae_torch","repo":"libcity/bigscity-libcity","repo_kind":"official","path":"libcity/model/loss.py","file_url":"https://github.com/libcity/bigscity-libcity/blob/HEAD/libcity/model/loss.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6c16b4c86ecbcba3"}},{"code_sha256_prefix":"96dff086a8a8530c","entry":"mse","repo":"libcity/bigscity-libcity","repo_kind":"official","path":"libcity/evaluator/eval_funcs.py","file_url":"https://github.com/libcity/bigscity-libcity/blob/HEAD/libcity/evaluator/eval_funcs.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"96dff086a8a8530c"}},{"code_sha256_prefix":"3ca0474dd60a6501","entry":"partition_to_grid","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"austinride.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/austinride.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3ca0474dd60a6501"}},{"code_sha256_prefix":"39ddf715e408db82","entry":"rmse","repo":"libcity/bigscity-libcity","repo_kind":"official","path":"libcity/evaluator/eval_funcs.py","file_url":"https://github.com/libcity/bigscity-libcity/blob/HEAD/libcity/evaluator/eval_funcs.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"39ddf715e408db82"}},{"code_sha256_prefix":"7259fe4aed6651ee","entry":"select_lat","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"bikechi.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/bikechi.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7259fe4aed6651ee"}},{"code_sha256_prefix":"33a5b720eef76c68","entry":"select_lon","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"bikechi.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/bikechi.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"33a5b720eef76c68"}},{"code_sha256_prefix":"cf6259ac473d9fe0","entry":"weight_matrix","repo":"libcity/bigscity-libcity-datasets","repo_kind":"official","path":"Multi_Graph_Demand.py","file_url":"https://github.com/libcity/bigscity-libcity-datasets/blob/HEAD/Multi_Graph_Demand.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cf6259ac473d9fe0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}