Skip to content

Commit

Permalink
changed download method to curl
Browse files Browse the repository at this point in the history
  • Loading branch information
taureandyernv authored Feb 12, 2025
1 parent 782f4b9 commit 449d988
Showing 1 changed file with 15 additions and 27 deletions.
42 changes: 15 additions & 27 deletions notebooks/trajectory_clustering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {
"tags": []
},
Expand All @@ -40,11 +40,7 @@
"from skimage import io\n",
"\n",
"import cuspatial\n",
"import cuml\n",
"if os.system(\"wget --version\") != 0:\n",
" print(\"Git not found, installing...\")\n",
" os.system(\"apt-get update -y\")\n",
" os.system(\"apt-get install -y wget\")"
"import cuml"
]
},
{
Expand Down Expand Up @@ -78,22 +74,14 @@
"name": "stdout",
"output_type": "stream",
"text": [
"--2025-02-11 11:11:27-- https://data.rapids.ai/cuspatial/datasets/trajectories_extracted.p\n",
"13.249.126.10, 13.249.126.40, 13.249.126.16, ...\n",
"Connecting to data.rapids.ai (data.rapids.ai)|13.249.126.10|:443... connected.\n",
"200 OKequest sent, awaiting response... \n",
"Length: 28919821 (28M) [text/x-pascal]\n",
"Saving to: ‘trajectories_extracted.p’\n",
"\n",
"trajectories_extrac 100%[===================>] 27.58M 35.4MB/s in 0.8s \n",
"\n",
"2025-02-11 11:11:28 (35.4 MB/s) - ‘trajectories_extracted.p’ saved [28919821/28919821]\n",
"\n"
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
" Dload Upload Total Spent Left Speed\n",
"100 27.5M 100 27.5M 0 0 60.9M 0 --:--:-- --:--:-- --:--:-- 61.4M\n"
]
}
],
"source": [
"!if [ ! -f \"trajectories_extracted.p\" ]; then wget -O trajectories_extracted.p \"https://data.rapids.ai/cuspatial/datasets/trajectories_extracted.p\"; else echo \"trajectories_extracted.p found\"; fi"
"!if [ ! -f \"trajectories_extracted.p\" ]; then curl -o trajectories_extracted.p \"https://data.rapids.ai/cuspatial/datasets/trajectories_extracted.p\"; else echo \"trajectories_extracted.p found\"; fi"
]
},
{
Expand Down Expand Up @@ -231,7 +219,7 @@
{
"data": {
"text/plain": [
"<matplotlib.collections.LineCollection at 0x7fbc207a0bc0>"
"<matplotlib.collections.LineCollection at 0x7f50b030a3c0>"
]
},
"execution_count": 6,
Expand Down Expand Up @@ -333,10 +321,10 @@
"dtype: geometry\n",
"\n",
"Hausdorff distance calculation by Cuspatial in GPU takes: \n",
" 4.356 seconds\n",
" 3.501 seconds\n",
"\n",
"The complete Dmatrix calculation including data transitioning and transforming takes: \n",
" 8.124 seconds\n"
" 36.900 seconds\n"
]
}
],
Expand Down Expand Up @@ -376,7 +364,7 @@
"output_type": "stream",
"text": [
"A complete AC search takes:\n",
" 1.096 seconds\n"
" 0.783 seconds\n"
]
}
],
Expand All @@ -400,7 +388,7 @@
"output_type": "stream",
"text": [
"A complete DBSCAN search takes:\n",
" 0.713 seconds\n"
" 0.447 seconds\n"
]
}
],
Expand Down Expand Up @@ -429,7 +417,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "bb77f4b146274527ad41a004566d4a41",
"model_id": "db5742d8c08b4a17a6327f3a220c3181",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -501,7 +489,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "6bbd363337184c52aa9ed738e437f456",
"model_id": "a07d30b3c9ba494093915ddc19c23d07",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -571,7 +559,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7954f2ba2284425fb19225684c510f97",
"model_id": "24526ff5c97e4e2a941fe6df8221aa0c",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -642,7 +630,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "472cd132031840b6b3db31e37cfa977b",
"model_id": "396ae3d94487428f9893cf6b60f90c68",
"version_major": 2,
"version_minor": 0
},
Expand Down

0 comments on commit 449d988

Please sign in to comment.