Skip to content

Commit

Permalink
Add project placeholder to ee.Initialize()
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 591975546
  • Loading branch information
jdbcode authored and copybara-github committed Dec 19, 2023
1 parent a01a5f0 commit 91da463
Show file tree
Hide file tree
Showing 19 changed files with 4,103 additions and 1,393 deletions.
2 changes: 1 addition & 1 deletion guides/linked/AI_platform_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"# Import and initialize the Earth Engine library.\n",
"import ee\n",
"ee.Authenticate()\n",
"ee.Initialize()"
"ee.Initialize(project='my-project')"
],
"execution_count": null,
"outputs": []
Expand Down
22 changes: 11 additions & 11 deletions guides/linked/Earth_Engine_TensorFlow_AI_Platform.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
"id": "aV1xZ1CPi3Nw"
},
"source": [
"<table class=\"ee-notebook-buttons\" align=\"left\"><td>\n",
"<a target=\"_blank\" href=\"http://colab.research.google.com/github/google/earthengine-community/blob/master/guides/linked/Earth_Engine_TensorFlow_AI_Platform.ipynb\">\n",
" <img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /> Run in Google Colab</a>\n",
"</td><td>\n",
"<a target=\"_blank\" href=\"https://github.com/google/earthengine-community/blob/master/guides/linked/Earth_Engine_TensorFlow_AI_Platform.ipynb\"><img width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /> View source on GitHub</a></td></table>"
"\u003ctable class=\"ee-notebook-buttons\" align=\"left\"\u003e\u003ctd\u003e\n",
"\u003ca target=\"_blank\" href=\"http://colab.research.google.com/github/google/earthengine-community/blob/master/guides/linked/Earth_Engine_TensorFlow_AI_Platform.ipynb\"\u003e\n",
" \u003cimg src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /\u003e Run in Google Colab\u003c/a\u003e\n",
"\u003c/td\u003e\u003ctd\u003e\n",
"\u003ca target=\"_blank\" href=\"https://github.com/google/earthengine-community/blob/master/guides/linked/Earth_Engine_TensorFlow_AI_Platform.ipynb\"\u003e\u003cimg width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /\u003e View source on GitHub\u003c/a\u003e\u003c/td\u003e\u003c/table\u003e"
]
},
{
Expand All @@ -59,7 +59,7 @@
"source": [
"# Introduction\n",
"\n",
"This is an Earth Engine <> TensorFlow demonstration notebook. This demonstrates a per-pixel neural network implemented in a way that allows the trained model to be hosted on [Google AI Platform](https://cloud.google.com/ai-platform) and used in Earth Engine for interactive prediction from an `ee.Model.fromAIPlatformPredictor`. See [this example notebook](http://colab.research.google.com/github/google/earthengine-community/blob/master/guides/linked/TF_demo1_keras.ipynb) for background on the dense model.\n",
"This is an Earth Engine \u003c\u003e TensorFlow demonstration notebook. This demonstrates a per-pixel neural network implemented in a way that allows the trained model to be hosted on [Google AI Platform](https://cloud.google.com/ai-platform) and used in Earth Engine for interactive prediction from an `ee.Model.fromAIPlatformPredictor`. See [this example notebook](http://colab.research.google.com/github/google/earthengine-community/blob/master/guides/linked/TF_demo1_keras.ipynb) for background on the dense model.\n",
"\n",
"**Running this demo may incur charges to your Google Cloud Account!**"
]
Expand Down Expand Up @@ -132,7 +132,7 @@
"source": [
"import ee\n",
"ee.Authenticate()\n",
"ee.Initialize()"
"ee.Initialize(project='my-project')"
],
"execution_count": null,
"outputs": []
Expand Down Expand Up @@ -666,19 +666,19 @@
"\n",
"folium.TileLayer(\n",
" tiles=mapid['tile_fetcher'].url_format,\n",
" attr='Map Data &copy; <a href=\"https://earthengine.google.com/\">Google Earth Engine</a>',\n",
" attr='Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e',\n",
" overlay=True,\n",
" name='median composite',\n",
" ).add_to(map)\n",
"folium.TileLayer(\n",
" tiles=label_mapid['tile_fetcher'].url_format,\n",
" attr='Map Data &copy; <a href=\"https://earthengine.google.com/\">Google Earth Engine</a>',\n",
" attr='Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e',\n",
" overlay=True,\n",
" name='predicted label',\n",
").add_to(map)\n",
"folium.TileLayer(\n",
" tiles=probability_mapid['tile_fetcher'].url_format,\n",
" attr='Map Data &copy; <a href=\"https://earthengine.google.com/\">Google Earth Engine</a>',\n",
" attr='Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e',\n",
" overlay=True,\n",
" name='probability',\n",
").add_to(map)\n",
Expand All @@ -689,4 +689,4 @@
"outputs": []
}
]
}
}
22 changes: 11 additions & 11 deletions guides/linked/Earth_Engine_TensorFlow_logistic_regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"id": "aV1xZ1CPi3Nw"
},
"source": [
"<table class=\"ee-notebook-buttons\" align=\"left\"><td>\n",
"<a target=\"_blank\" href=\"http://colab.research.google.com/github/google/earthengine-community/blob/master/guides/linked/Earth_Engine_TensorFlow_logistic_regression.ipynb\">\n",
" <img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /> Run in Google Colab</a>\n",
"</td><td>\n",
"<a target=\"_blank\" href=\"https://github.com/google/earthengine-community/blob/master/guides/linked/Earth_Engine_TensorFlow_logistic_regression.ipynb\"><img width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /> View source on GitHub</a></td></table>"
"\u003ctable class=\"ee-notebook-buttons\" align=\"left\"\u003e\u003ctd\u003e\n",
"\u003ca target=\"_blank\" href=\"http://colab.research.google.com/github/google/earthengine-community/blob/master/guides/linked/Earth_Engine_TensorFlow_logistic_regression.ipynb\"\u003e\n",
" \u003cimg src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /\u003e Run in Google Colab\u003c/a\u003e\n",
"\u003c/td\u003e\u003ctd\u003e\n",
"\u003ca target=\"_blank\" href=\"https://github.com/google/earthengine-community/blob/master/guides/linked/Earth_Engine_TensorFlow_logistic_regression.ipynb\"\u003e\u003cimg width=32px src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /\u003e View source on GitHub\u003c/a\u003e\u003c/td\u003e\u003c/table\u003e"
]
},
{
Expand Down Expand Up @@ -123,7 +123,7 @@
"source": [
"import ee\n",
"ee.Authenticate()\n",
"ee.Initialize()"
"ee.Initialize(project='my-project')"
],
"execution_count": null,
"outputs": []
Expand Down Expand Up @@ -724,25 +724,25 @@
"map = folium.Map(location=[-9.1, -62.3], zoom_start=11)\n",
"folium.TileLayer(\n",
" tiles=image_mapid['tile_fetcher'].url_format,\n",
" attr='Map Data &copy; <a href=\"https://earthengine.google.com/\">Google Earth Engine</a>',\n",
" attr='Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e',\n",
" overlay=True,\n",
" name='image',\n",
").add_to(map)\n",
"folium.TileLayer(\n",
" tiles=probability_mapid['tile_fetcher'].url_format,\n",
" attr='Map Data &copy; <a href=\"https://earthengine.google.com/\">Google Earth Engine</a>',\n",
" attr='Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e',\n",
" overlay=True,\n",
" name='probability',\n",
").add_to(map)\n",
"folium.TileLayer(\n",
" tiles=predicted_mapid['tile_fetcher'].url_format,\n",
" attr='Map Data &copy; <a href=\"https://earthengine.google.com/\">Google Earth Engine</a>',\n",
" attr='Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e',\n",
" overlay=True,\n",
" name='predicted',\n",
").add_to(map)\n",
"folium.TileLayer(\n",
" tiles=reference_mapid['tile_fetcher'].url_format,\n",
" attr='Map Data &copy; <a href=\"https://earthengine.google.com/\">Google Earth Engine</a>',\n",
" attr='Map Data \u0026copy; \u003ca href=\"https://earthengine.google.com/\"\u003eGoogle Earth Engine\u003c/a\u003e',\n",
" overlay=True,\n",
" name='reference',\n",
").add_to(map)\n",
Expand All @@ -753,4 +753,4 @@
"outputs": []
}
]
}
}
1,327 changes: 1,326 additions & 1 deletion guides/linked/TF_demo1_keras.ipynb

Large diffs are not rendered by default.

1,037 changes: 1,036 additions & 1 deletion guides/linked/UNET_regression_demo.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 91da463

Please sign in to comment.