LibCity / Bigscity-LibCity

LibCity: An Open Library for Urban Spatial-temporal Data Mining
https://libcity.ai/
Apache License 2.0
886 stars 163 forks source link

How to select traffic flow / speed / occupancy in PEMSD4 & 8 #358

Open aptx1231 opened 11 months ago

aptx1231 commented 11 months ago

If you want to predict a particular piece of data individually, i.e., traffic flow / speed / occupancy, you need to modify the PEMSD4 or PEMSD8/config.json under the dataset, note the part highlighted below, and modify it to look like this:

There is a large difference in the magnitude of these three types of data, and in past articles where traffic flow predictions have typically been made, wanting to select a particular type of data in isolation requires the modifications below.

Most articles need to be set to traffic_flow if you wish to reproduce the results of past articles.

traffic_flow only: "info": { "data_col": [ "traffic_flow" ], "weight_col": "cost", "data_files": [ "PEMSD4" ], "geo_file": "PEMSD4", "rel_file": "PEMSD4", "output_dim": 1, "time_intervals": 300, "init_weight_inf_or_zero": "zero", "set_weight_link_or_dist": "link", "calculate_weight_adj": false, "weight_adj_epsilon": 0.1 }

traffic speed only: "info": { "data_col": [ "traffic_speed" ], "weight_col": "cost", "data_files": [ "PEMSD4" ], "geo_file": "PEMSD4", "rel_file": "PEMSD4", "output_dim": 1, "time_intervals": 300, "init_weight_inf_or_zero": "zero", "set_weight_link_or_dist": "link", "calculate_weight_adj": false, "weight_adj_epsilon": 0.1 }

traffic occupancy only: "info": { "data_col": [ "traffic_occupancy" ], "weight_col": "cost", "data_files": [ "PEMSD4" ], "geo_file": "PEMSD4", "rel_file": "PEMSD4", "output_dim": 1, "time_intervals": 300, "init_weight_inf_or_zero": "zero", "set_weight_link_or_dist": "link", "calculate_weight_adj": false, "weight_adj_epsilon": 0.1 }

aptx1231 commented 11 months ago

Similar problem:

https://github.com/LibCity/Bigscity-LibCity/issues/220 https://github.com/BUAABIGSCity/PDFormer/issues/16 https://github.com/LibCity/Bigscity-LibCity/issues/184