Skip to content

Commit e6de1ac

Browse files
author
Neha Sharma
committed
update mussel farms notebook
1 parent 9470f7f commit e6de1ac

File tree

1 file changed

+43
-51
lines changed

1 file changed

+43
-51
lines changed

samples/04_gis_analysts_data_scientists/detecting_mussel_farms_using_deep_learning.ipynb

Lines changed: 43 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,28 @@
111111
"## Export training data"
112112
]
113113
},
114+
{
115+
"cell_type": "markdown",
116+
"id": "976969ad-2fda-4280-9781-38eb04e2d9ff",
117+
"metadata": {},
118+
"source": [
119+
"### Necessary imports"
120+
]
121+
},
114122
{
115123
"cell_type": "code",
116124
"execution_count": 1,
117125
"id": "ad42be61",
118126
"metadata": {},
119127
"outputs": [],
120128
"source": [
121-
"from arcgis.gis import GIS"
129+
"import os\n",
130+
"import glob\n",
131+
"import zipfile\n",
132+
"from pathlib import Path\n",
133+
"\n",
134+
"from arcgis.gis import GIS\n",
135+
"from arcgis.learn import prepare_data, MMDetection"
122136
]
123137
},
124138
{
@@ -258,28 +272,6 @@
258272
"## Train the model"
259273
]
260274
},
261-
{
262-
"cell_type": "markdown",
263-
"id": "7d44dec3",
264-
"metadata": {},
265-
"source": [
266-
"### Necessary imports"
267-
]
268-
},
269-
{
270-
"cell_type": "code",
271-
"execution_count": 5,
272-
"id": "67955604",
273-
"metadata": {},
274-
"outputs": [],
275-
"source": [
276-
"import os\n",
277-
"import glob\n",
278-
"import zipfile\n",
279-
"from pathlib import Path\n",
280-
"from arcgis.learn import prepare_data, MMDetection"
281-
]
282-
},
283275
{
284276
"cell_type": "markdown",
285277
"id": "e6384531",
@@ -298,7 +290,7 @@
298290
},
299291
{
300292
"cell_type": "code",
301-
"execution_count": 6,
293+
"execution_count": 5,
302294
"id": "d8eefa5e",
303295
"metadata": {
304296
"scrolled": true
@@ -328,7 +320,7 @@
328320
"<Item title:\"musselfarm_detection_training_data\" type:Image Collection owner:api_data_owner>"
329321
]
330322
},
331-
"execution_count": 6,
323+
"execution_count": 5,
332324
"metadata": {},
333325
"output_type": "execute_result"
334326
}
@@ -340,7 +332,7 @@
340332
},
341333
{
342334
"cell_type": "code",
343-
"execution_count": 7,
335+
"execution_count": 6,
344336
"id": "42dffd87",
345337
"metadata": {},
346338
"outputs": [],
@@ -350,7 +342,7 @@
350342
},
351343
{
352344
"cell_type": "code",
353-
"execution_count": 8,
345+
"execution_count": 7,
354346
"id": "df888232",
355347
"metadata": {},
356348
"outputs": [],
@@ -362,7 +354,7 @@
362354
},
363355
{
364356
"cell_type": "code",
365-
"execution_count": 9,
357+
"execution_count": 8,
366358
"id": "45a82139",
367359
"metadata": {},
368360
"outputs": [],
@@ -386,7 +378,7 @@
386378
},
387379
{
388380
"cell_type": "code",
389-
"execution_count": 10,
381+
"execution_count": 9,
390382
"id": "09d7e4a6",
391383
"metadata": {},
392384
"outputs": [],
@@ -406,7 +398,7 @@
406398
},
407399
{
408400
"cell_type": "code",
409-
"execution_count": 11,
401+
"execution_count": 10,
410402
"id": "106b22dc",
411403
"metadata": {},
412404
"outputs": [
@@ -443,7 +435,7 @@
443435
},
444436
{
445437
"cell_type": "code",
446-
"execution_count": 12,
438+
"execution_count": 11,
447439
"id": "596352f8",
448440
"metadata": {},
449441
"outputs": [
@@ -476,7 +468,7 @@
476468
" 'vfnet']"
477469
]
478470
},
479-
"execution_count": 12,
471+
"execution_count": 11,
480472
"metadata": {},
481473
"output_type": "execute_result"
482474
}
@@ -487,7 +479,7 @@
487479
},
488480
{
489481
"cell_type": "code",
490-
"execution_count": 13,
482+
"execution_count": 12,
491483
"id": "8cc9efa5",
492484
"metadata": {},
493485
"outputs": [],
@@ -513,7 +505,7 @@
513505
},
514506
{
515507
"cell_type": "code",
516-
"execution_count": 14,
508+
"execution_count": 13,
517509
"id": "c73f075f",
518510
"metadata": {},
519511
"outputs": [
@@ -533,7 +525,7 @@
533525
"4.365158322401661e-05"
534526
]
535527
},
536-
"execution_count": 14,
528+
"execution_count": 13,
537529
"metadata": {},
538530
"output_type": "execute_result"
539531
}
@@ -561,7 +553,7 @@
561553
},
562554
{
563555
"cell_type": "code",
564-
"execution_count": 15,
556+
"execution_count": 14,
565557
"id": "4b001851",
566558
"metadata": {
567559
"scrolled": true
@@ -692,7 +684,7 @@
692684
},
693685
{
694686
"cell_type": "code",
695-
"execution_count": 16,
687+
"execution_count": 15,
696688
"id": "df83ba74",
697689
"metadata": {
698690
"scrolled": true
@@ -731,7 +723,7 @@
731723
},
732724
{
733725
"cell_type": "code",
734-
"execution_count": 17,
726+
"execution_count": 16,
735727
"id": "4ac11fea",
736728
"metadata": {},
737729
"outputs": [
@@ -770,7 +762,7 @@
770762
"{'MusselFarm': 0.8913268297731172}"
771763
]
772764
},
773-
"execution_count": 17,
765+
"execution_count": 16,
774766
"metadata": {},
775767
"output_type": "execute_result"
776768
}
@@ -799,7 +791,7 @@
799791
},
800792
{
801793
"cell_type": "code",
802-
"execution_count": 18,
794+
"execution_count": 17,
803795
"id": "55fb85a1",
804796
"metadata": {},
805797
"outputs": [
@@ -813,10 +805,10 @@
813805
{
814806
"data": {
815807
"text/plain": [
816-
"WindowsPath('C:/Users/Neh13173/AppData/Local/Temp/musselfarm_detection_training_data/models/musselfarms_mmd_dynamic_rcnn_10ep')"
808+
"WindowsPath('~/AppData/Local/Temp/musselfarm_detection_training_data/models/musselfarms_mmd_dynamic_rcnn_10ep')"
817809
]
818810
},
819-
"execution_count": 18,
811+
"execution_count": 17,
820812
"metadata": {},
821813
"output_type": "execute_result"
822814
}
@@ -843,7 +835,7 @@
843835
},
844836
{
845837
"cell_type": "code",
846-
"execution_count": 19,
838+
"execution_count": 18,
847839
"id": "f4b0f8ac",
848840
"metadata": {},
849841
"outputs": [
@@ -871,7 +863,7 @@
871863
"<Item title:\"mussel_farm_detection_test_imagery\" type:Tiled Imagery Layer owner:demos_deldev>"
872864
]
873865
},
874-
"execution_count": 19,
866+
"execution_count": 18,
875867
"metadata": {},
876868
"output_type": "execute_result"
877869
}
@@ -899,7 +891,7 @@
899891
},
900892
{
901893
"cell_type": "code",
902-
"execution_count": 20,
894+
"execution_count": 19,
903895
"id": "1aa22a12",
904896
"metadata": {},
905897
"outputs": [
@@ -927,7 +919,7 @@
927919
"<Item title:\"Model Builder for Mussel Farm Detection\" type:Geoprocessing Sample owner:api_data_owner>"
928920
]
929921
},
930-
"execution_count": 20,
922+
"execution_count": 19,
931923
"metadata": {},
932924
"output_type": "execute_result"
933925
}
@@ -1006,7 +998,7 @@
1006998
},
1007999
{
10081000
"cell_type": "code",
1009-
"execution_count": 21,
1001+
"execution_count": 20,
10101002
"id": "ca913fd8",
10111003
"metadata": {},
10121004
"outputs": [
@@ -1034,7 +1026,7 @@
10341026
"<Item title:\"musselfarms_detected\" type:Feature Layer Collection owner:demos_deldev>"
10351027
]
10361028
},
1037-
"execution_count": 21,
1029+
"execution_count": 20,
10381030
"metadata": {},
10391031
"output_type": "execute_result"
10401032
}
@@ -1046,7 +1038,7 @@
10461038
},
10471039
{
10481040
"cell_type": "code",
1049-
"execution_count": 22,
1041+
"execution_count": 21,
10501042
"id": "b9287d0a",
10511043
"metadata": {},
10521044
"outputs": [
@@ -1074,7 +1066,7 @@
10741066
"<Item title:\"mussel_farm_detection\" type:Web Map owner:demos_deldev>"
10751067
]
10761068
},
1077-
"execution_count": 22,
1069+
"execution_count": 21,
10781070
"metadata": {},
10791071
"output_type": "execute_result"
10801072
}
@@ -1086,7 +1078,7 @@
10861078
},
10871079
{
10881080
"cell_type": "code",
1089-
"execution_count": 23,
1081+
"execution_count": 22,
10901082
"id": "529f399b",
10911083
"metadata": {
10921084
"scrolled": true

0 commit comments

Comments
 (0)