Skip to content

Commit e7ea14f

Browse files
committed
change notebooks
1 parent 0581eca commit e7ea14f

File tree

7 files changed

+773
-25
lines changed

7 files changed

+773
-25
lines changed

00_hello.ipynb

+12-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"source": [
2626
"<div class=\"main-title\">\n",
27-
"<h1>SRAI Tutorial</h1>\n",
27+
"<h1>Introduction to Geospatial ML</h1>\n",
2828
"<p>Hello!</p>\n",
2929
"</div>"
3030
]
@@ -39,8 +39,8 @@
3939
"source": [
4040
"<div class=\"center-content\">\n",
4141
" <p>Resource materials:</p>\n",
42-
" <img src=\"assets/qr-tutorial.png\" style=\"width: 400px; margin: auto\"/>\n",
43-
" <h1 style=\"margin: auto;\">https://t.ly/jk51f</h1>\n",
42+
" <!-- <img src=\"assets/qr-tutorial.png\" style=\"width: 400px; margin: auto\"/> -->\n",
43+
" <h1 style=\"margin: auto;\">https://github.com/kraina-ai/srai-tutorial/tree/sotm2024</h1>\n",
4444
"</div>"
4545
]
4646
},
@@ -93,7 +93,7 @@
9393
}
9494
},
9595
"source": [
96-
"### Here comes SRAI"
96+
"### Here comes:"
9797
]
9898
},
9999
{
@@ -107,6 +107,13 @@
107107
"## Spatial Representations for Artificial Intelligence"
108108
]
109109
},
110+
{
111+
"cell_type": "markdown",
112+
"metadata": {},
113+
"source": [
114+
"## QuackOSM"
115+
]
116+
},
110117
{
111118
"cell_type": "markdown",
112119
"metadata": {
@@ -190,7 +197,7 @@
190197
"name": "python",
191198
"nbconvert_exporter": "python",
192199
"pygments_lexer": "ipython3",
193-
"version": "3.10.11"
200+
"version": "3.11.9"
194201
},
195202
"rise": {
196203
"controls": false,

01_introduction_to_geospatial.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@
670670
"\n",
671671
"<div class=\"image-container\">\n",
672672
" <figure>\n",
673-
" <img src=\"https://s2geometry.io/devguide/img/s2hierarchy.gif\">\n",
673+
" <img src=\"http://s2geometry.io/devguide/img/s2hierarchy.gif\">\n",
674674
" <figcaption><a href=\"https://s2geometry.io/\">S2</a></figcaption>\n",
675675
" </figure>\n",
676676
" <figure>\n",
@@ -896,7 +896,7 @@
896896
"name": "python",
897897
"nbconvert_exporter": "python",
898898
"pygments_lexer": "ipython3",
899-
"version": "3.10.12"
899+
"version": "3.11.9"
900900
},
901901
"rise": {
902902
"controls": false,

02_srai.ipynb

+7-11
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@
115115
},
116116
"outputs": [],
117117
"source": [
118-
"CITY = \"Basel\"\n",
119-
"COUNTRY = \"Switzerland\"\n",
118+
"CITY = \"Łódź\"\n",
119+
"COUNTRY = \"Poland\"\n",
120120
"\n",
121121
"area_name = f\"{CITY}, {COUNTRY}\"\n",
122122
"area_name"
@@ -235,7 +235,7 @@
235235
"\n",
236236
"features = (\n",
237237
" OSMPbfLoader()\n",
238-
" .load(area, {\"highway\": True, \"water\": True, \"waterway\": True})\n",
238+
" .load(area, {\"highway\": [\"motorway\", \"trunk\", \"primary\", \"secondary\", \"tertiary\", \"residential\", \"*_link\", \"pedestrian\"], \"water\": True, \"waterway\": True})\n",
239239
" .clip(area)\n",
240240
")\n",
241241
"features.head(3)"
@@ -288,13 +288,9 @@
288288
},
289289
{
290290
"cell_type": "markdown",
291-
"metadata": {
292-
"slideshow": {
293-
"slide_type": "subslide"
294-
}
295-
},
291+
"metadata": {},
296292
"source": [
297-
"<img src=\"poster.png\" style=\"height: 900px; margin: auto\" /> "
293+
"<img src=\"poster.png\" style=\"height: 900px; margin: auto\" />"
298294
]
299295
},
300296
{
@@ -483,7 +479,7 @@
483479
},
484480
"outputs": [],
485481
"source": [
486-
"stops = OSMOnlineLoader().load(area, {\"public_transport\": \"stop_position\"})\n",
482+
"stops = OSMOnlineLoader().load(area, {\"public_transport\": \"stop_position\"}).drop_duplicates(\"geometry\")\n",
487483
"stops.explore()"
488484
]
489485
},
@@ -746,7 +742,7 @@
746742
"name": "python",
747743
"nbconvert_exporter": "python",
748744
"pygments_lexer": "ipython3",
749-
"version": "3.10.11"
745+
"version": "3.11.9"
750746
},
751747
"rise": {
752748
"controls": false,

03_ml.ipynb

+5-5
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@
111111
"outputs": [],
112112
"source": [
113113
"SOURCE_CITY = \"Wrocław, Poland\"\n",
114-
"TARGET_CITY = \"Basel, Switzerland\"\n",
115-
"H3_RESOLUTION = 10\n",
114+
"TARGET_CITY = \"Łódź, Poland\"\n",
115+
"H3_RESOLUTION = 9\n",
116116
"\n",
117117
"bike_stations_osm_tag = {\"amenity\": \"bicycle_rental\"}"
118118
]
@@ -433,7 +433,7 @@
433433
}
434434
},
435435
"source": [
436-
"### Transfer knowledge to Basel"
436+
"### Transfer knowledge to Łódź"
437437
]
438438
},
439439
{
@@ -457,7 +457,7 @@
457457
},
458458
"outputs": [],
459459
"source": [
460-
"target_regions = H3Regionalizer(resolution=10).transform(target_area)\n",
460+
"target_regions = H3Regionalizer(resolution=H3_RESOLUTION).transform(target_area)\n",
461461
"target_features = OSMPbfLoader().load(target_area, embedder_osm_tags)\n",
462462
"target_joint = IntersectionJoiner().transform(target_regions, target_features)\n",
463463
"target_embeddings = embedder.transform(target_regions, target_features, target_joint)"
@@ -534,7 +534,7 @@
534534
"name": "python",
535535
"nbconvert_exporter": "python",
536536
"pygments_lexer": "ipython3",
537-
"version": "3.10.11"
537+
"version": "3.11.9"
538538
},
539539
"rise": {
540540
"controls": false,

0 commit comments

Comments
 (0)