Skip to content

Commit

Permalink
[Examples] Small change to number of airports (#1148)
Browse files Browse the repository at this point in the history
*Issue #, if available:*

*Description of changes:*
Small change in air traffic example.

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
  • Loading branch information
RonaldBXu authored Jan 29, 2025
1 parent 7c053cf commit 4c9b91a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
21 changes: 18 additions & 3 deletions examples/network_traffic_prediction/Air_Traffic_Data_Exp&Gc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,12 @@
" \"features\": [\n",
" {\n",
" \"feature_col\": \"demands\",\n",
" \"feature_name\": \"demands\"\n",
" \"feature_name\": \"demands\",\n",
" \"transform\": {\n",
" \"name\": \"max_min_norm\",\n",
" \"max_val\": 10.0,\n",
" \"min_val\": 0.0\n",
" }\n",
" }\n",
" ]\n",
"}\n",
Expand All @@ -555,11 +560,21 @@
" \"features\": [\n",
" {\n",
" \"feature_col\": \"capacity\",\n",
" \"feature_name\": \"capacity\"\n",
" \"feature_name\": \"capacity\",\n",
" \"transform\": {\n",
" \"name\": \"max_min_norm\",\n",
" \"max_val\": 10.0,\n",
" \"min_val\": 0.0\n",
" }\n",
" },\n",
" {\n",
" \"feature_col\": \"traffics\",\n",
" \"feature_name\": \"traffics\"\n",
" \"feature_name\": \"traffics\",\n",
" \"transform\": {\n",
" \"name\": \"max_min_norm\",\n",
" \"max_val\": 10.0,\n",
" \"min_val\": 0.0\n",
" }\n",
" }\n",
" ]\n",
"}\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,9 @@
}
],
"source": [
"# Extract first 1000 major airports\n",
"airports_df = fetch_airports_data(N=1000)\n",
"# Extract first 400 major airports\n",
"airports_df = fetch_airports_data(N=400)\n",
"\n",
"# Turns out there are only 471 major airports\n",
"print(airports_df.shape)"
]
},
Expand Down

0 comments on commit 4c9b91a

Please sign in to comment.