Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aptx1231 opened this issue Oct 5, 2023 · 1 comment
Open

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

aptx1231 opened this issue Oct 5, 2023 · 1 comment

Comments

@aptx1231
Copy link
Member

aptx1231 commented Oct 5, 2023

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
Copy link
Member Author

aptx1231 commented Oct 5, 2023

Similar problem:

#220
BUAABIGSCity/PDFormer#16
#184

@aptx1231 aptx1231 reopened this Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant