Skip to content

Commit 3b58019

Browse files
committed
initial comit
1 parent ec587bb commit 3b58019

File tree

6 files changed

+10312
-63
lines changed

6 files changed

+10312
-63
lines changed

hackathon/01_health_check.ipynb

Lines changed: 8958 additions & 44 deletions
Large diffs are not rendered by default.

hackathon/02_run_pipelines.ipynb

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,37 @@
3737
{
3838
"cell_type": "code",
3939
"execution_count": null,
40-
"metadata": {},
41-
"outputs": [],
40+
"metadata": {
41+
"tags": []
42+
},
43+
"outputs": [
44+
{
45+
"name": "stdout",
46+
"output_type": "stream",
47+
"text": [
48+
"Updated property [core/project].\n",
49+
"Updated property [core/account].\n",
50+
"\n",
51+
"You are running on a Google Compute Engine virtual machine.\n",
52+
"It is recommended that you use service accounts for authentication.\n",
53+
"\n",
54+
"You can run:\n",
55+
"\n",
56+
" $ gcloud config set account `ACCOUNT`\n",
57+
"\n",
58+
"to switch accounts if necessary.\n",
59+
"\n",
60+
"Your credentials may be visible to others with access to this\n",
61+
"virtual machine. Are you sure you want to authenticate with\n",
62+
"your personal account?\n",
63+
"\n",
64+
"Do you want to continue (Y/n)? "
65+
]
66+
}
67+
],
4268
"source": [
43-
"VERTEX_PROJECT_ID = \"my-project-id\"\n",
44-
"GOOGLE_ACCOUNT = \"[email protected]\"\n",
69+
"VERTEX_PROJECT_ID = \"dt-sky-mlops-hackathon-dev\"\n",
70+
"GOOGLE_ACCOUNT = \"[email protected]\"\n",
4571
"! gcloud config set project {VERTEX_PROJECT_ID}\n",
4672
"! gcloud config set account {GOOGLE_ACCOUNT}\n",
4773
"! gcloud auth login"
@@ -50,7 +76,9 @@
5076
{
5177
"cell_type": "code",
5278
"execution_count": null,
53-
"metadata": {},
79+
"metadata": {
80+
"tags": []
81+
},
5482
"outputs": [],
5583
"source": [
5684
"%cd .."
@@ -85,7 +113,9 @@
85113
{
86114
"cell_type": "code",
87115
"execution_count": null,
88-
"metadata": {},
116+
"metadata": {
117+
"tags": []
118+
},
89119
"outputs": [],
90120
"source": [
91121
"! make training wait=true"
@@ -133,7 +163,9 @@
133163
{
134164
"cell_type": "code",
135165
"execution_count": null,
136-
"metadata": {},
166+
"metadata": {
167+
"tags": []
168+
},
137169
"outputs": [],
138170
"source": [
139171
"! make prediction"
@@ -194,10 +226,16 @@
194226
"name": "notebook_template.ipynb",
195227
"toc_visible": true
196228
},
229+
"environment": {
230+
"kernel": "conda-root-py",
231+
"name": "workbench-notebooks.m113",
232+
"type": "gcloud",
233+
"uri": "gcr.io/deeplearning-platform-release/workbench-notebooks:m113"
234+
},
197235
"kernelspec": {
198-
"display_name": "Python 3 (ipykernel)",
236+
"display_name": "Python 3 (ipykernel) (Local)",
199237
"language": "python",
200-
"name": "python3"
238+
"name": "conda-root-py"
201239
},
202240
"language_info": {
203241
"codemirror_mode": {
@@ -209,7 +247,7 @@
209247
"name": "python",
210248
"nbconvert_exporter": "python",
211249
"pygments_lexer": "ipython3",
212-
"version": "3.9.16"
250+
"version": "3.10.13"
213251
},
214252
"vscode": {
215253
"interpreter": {

hackathon/03_promote_model.ipynb

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,37 @@
3737
{
3838
"cell_type": "code",
3939
"execution_count": null,
40-
"metadata": {},
41-
"outputs": [],
40+
"metadata": {
41+
"tags": []
42+
},
43+
"outputs": [
44+
{
45+
"name": "stdout",
46+
"output_type": "stream",
47+
"text": [
48+
"Updated property [core/project].\n",
49+
"Updated property [core/account].\n",
50+
"\n",
51+
"You are running on a Google Compute Engine virtual machine.\n",
52+
"It is recommended that you use service accounts for authentication.\n",
53+
"\n",
54+
"You can run:\n",
55+
"\n",
56+
" $ gcloud config set account `ACCOUNT`\n",
57+
"\n",
58+
"to switch accounts if necessary.\n",
59+
"\n",
60+
"Your credentials may be visible to others with access to this\n",
61+
"virtual machine. Are you sure you want to authenticate with\n",
62+
"your personal account?\n",
63+
"\n",
64+
"Do you want to continue (Y/n)? "
65+
]
66+
}
67+
],
4268
"source": [
43-
"VERTEX_PROJECT_ID = \"my-project-id\"\n",
44-
"GOOGLE_ACCOUNT = \"[email protected]\"\n",
69+
"VERTEX_PROJECT_ID = \"dt-sky-mlops-hackathon-dev\"\n",
70+
"GOOGLE_ACCOUNT = \"[email protected]\"\n",
4571
"! gcloud config set project {VERTEX_PROJECT_ID}\n",
4672
"! gcloud config set account {GOOGLE_ACCOUNT}\n",
4773
"! gcloud auth login"
@@ -76,7 +102,6 @@
76102
]
77103
},
78104
{
79-
"attachments": {},
80105
"cell_type": "markdown",
81106
"metadata": {},
82107
"source": [
@@ -193,10 +218,16 @@
193218
"name": "notebook_template.ipynb",
194219
"toc_visible": true
195220
},
221+
"environment": {
222+
"kernel": "conda-root-py",
223+
"name": "workbench-notebooks.m113",
224+
"type": "gcloud",
225+
"uri": "gcr.io/deeplearning-platform-release/workbench-notebooks:m113"
226+
},
196227
"kernelspec": {
197-
"display_name": "Python 3 (ipykernel)",
228+
"display_name": "Python 3 (ipykernel) (Local)",
198229
"language": "python",
199-
"name": "python3"
230+
"name": "conda-root-py"
200231
},
201232
"language_info": {
202233
"codemirror_mode": {
@@ -208,7 +239,7 @@
208239
"name": "python",
209240
"nbconvert_exporter": "python",
210241
"pygments_lexer": "ipython3",
211-
"version": "3.9.16"
242+
"version": "3.10.13"
212243
},
213244
"vscode": {
214245
"interpreter": {

pipelines/src/pipelines/prediction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
RESOURCE_SUFFIX = env.get("RESOURCE_SUFFIX", "default")
2525
# set training-serving skew thresholds and emails to receive alerts:
26-
ALERT_EMAILS = []
26+
ALERT_EMAILS = ['[email protected]']
2727
NOTIFICATION_CHANNELS = []
2828
SKEW_THRESHOLDS = {"defaultSkewThreshold": {"value": 0.001}}
2929
# or set different thresholds per feature:

0 commit comments

Comments
 (0)