diff --git a/samples/04_gis_analysts_data_scientists/land_cover_classification_using_unet.ipynb b/samples/04_gis_analysts_data_scientists/land_cover_classification_using_unet.ipynb index 5f42c869c..1db66faeb 100644 --- a/samples/04_gis_analysts_data_scientists/land_cover_classification_using_unet.ipynb +++ b/samples/04_gis_analysts_data_scientists/land_cover_classification_using_unet.ipynb @@ -79,8 +79,8 @@ "metadata": {}, "outputs": [], "source": [ - "gis = GIS('home')\n", - "ent_gis = GIS('https://pythonapi.playground.esri.com/portal', 'arcgis_python', 'amazing_arcgis_123')" + "gis = GIS(profile=\"your_online_profile\")\n", + "ent_gis = GIS(profile=\"your_enterprise_profile\")" ] }, { @@ -171,7 +171,7 @@ } ], "source": [ - "m = ent_gis.map(\"Kent county, Delaware\", 15)\n", + "m = ent_gis.map(\"Kent county, Delaware\")\n", "m" ] }, @@ -181,7 +181,7 @@ "metadata": {}, "outputs": [], "source": [ - "m.add_layer(world_imagery_layer)" + "m.content.add(world_imagery_layer)" ] }, { @@ -190,7 +190,7 @@ "metadata": {}, "outputs": [], "source": [ - "m.add_layer(label_layer)" + "m.content.add(label_layer)" ] }, { @@ -1003,7 +1003,7 @@ " model_arguments={\"padding\":100, \"batch_size\":16, \"predict_background\":True, \"test_time_augmentation\":True},\n", " output_name = \"land_cover_sample_inference_result\"+str(datetime.now().microsecond),\n", " context = context,\n", - " gis = ent_gis2)\n", + " gis = ent_gis)\n", "out_classify" ] }, @@ -1023,7 +1023,7 @@ "from arcgis.raster.functions import colormap\n", "\n", "result_map = ent_gis.map('Kent County, Delaware')\n", - "result_map.basemap = 'satellite'" + "result_map.basemap.basemap = 'satellite'" ] }, { @@ -1072,10 +1072,10 @@ } ], "source": [ - "result_map.add_layer(colormap(out_classify.layers[0], \n", + "result_map.content.add(colormap(out_classify.layers[0], \n", " colormap = land_cover_colormap, \n", " astype='u8'),\n", - " {'opacity':0.2})\n", + " options={'opacity':0.2})\n", "result_map" ] },