Skip to content

Commit

Permalink
updated for studio
Browse files Browse the repository at this point in the history
  • Loading branch information
antje committed Jan 16, 2021
1 parent 679b89e commit 740be5b
Show file tree
Hide file tree
Showing 52 changed files with 3,917 additions and 957 deletions.
1 change: 0 additions & 1 deletion 01_setup/00_Overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@
}
],
"metadata": {
"instance_type": "ml.t3.medium",
"kernelspec": {
"display_name": "Python 3 (Data Science)",
"language": "python",
Expand Down
19 changes: 15 additions & 4 deletions 02_usecases/00_Overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,25 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"%%javascript\n",
"\n",
"try {\n",
" Jupyter.notebook.save_checkpoint();\n",
" Jupyter.notebook.session.delete();\n",
"}\n",
"catch(err) {\n",
" // NoOp\n",
"}"
]
}
],
"metadata": {
"instance_type": "ml.t3.medium",
"kernelspec": {
"display_name": "conda_python3",
"display_name": "Python 3 (Data Science)",
"language": "python",
"name": "conda_python3"
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/datascience-1.0"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -35,7 +46,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
17 changes: 12 additions & 5 deletions 02_usecases/01_Setup.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,23 @@
"outputs": [],
"source": [
"%%javascript\n",
"Jupyter.notebook.save_checkpoint();\n",
"Jupyter.notebook.session.delete();"
"\n",
"try {\n",
" Jupyter.notebook.save_checkpoint();\n",
" Jupyter.notebook.session.delete();\n",
"}\n",
"catch(err) {\n",
" // NoOp\n",
"}"
]
}
],
"metadata": {
"instance_type": "ml.t3.medium",
"kernelspec": {
"display_name": "conda_python3",
"display_name": "Python 3 (Data Science)",
"language": "python",
"name": "conda_python3"
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/datascience-1.0"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -77,7 +84,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
23 changes: 14 additions & 9 deletions 02_usecases/02_Object_Detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"display(detectLabelsResponse)"
Expand Down Expand Up @@ -635,7 +633,7 @@
"outputs": [],
"source": [
"s3Resource = boto3.resource('s3')\n",
"bucket = s3Resource.Bucket(bucketName)\n",
"bucket = s3Resource.Bucket(bucket)\n",
"iojb = bucket.Object(imageName)\n",
"response = iojb.get()\n",
"file_stream = response['Body']\n",
Expand Down Expand Up @@ -694,16 +692,23 @@
"outputs": [],
"source": [
"%%javascript\n",
"Jupyter.notebook.save_checkpoint();\n",
"Jupyter.notebook.session.delete();"
"\n",
"try {\n",
" Jupyter.notebook.save_checkpoint();\n",
" Jupyter.notebook.session.delete();\n",
"}\n",
"catch(err) {\n",
" // NoOp\n",
"}"
]
}
],
"metadata": {
"instance_type": "ml.t3.medium",
"kernelspec": {
"display_name": "conda_python3",
"display_name": "Python 3 (Data Science)",
"language": "python",
"name": "conda_python3"
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/datascience-1.0"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -715,7 +720,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
30 changes: 14 additions & 16 deletions 02_usecases/03_Celebrity_Recognition.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"s3FilePrefix = \"https://s3.amazonaws.com\"\n",
Expand Down Expand Up @@ -478,23 +476,23 @@
"outputs": [],
"source": [
"%%javascript\n",
"Jupyter.notebook.save_checkpoint();\n",
"Jupyter.notebook.session.delete();"
"\n",
"try {\n",
" Jupyter.notebook.save_checkpoint();\n",
" Jupyter.notebook.session.delete();\n",
"}\n",
"catch(err) {\n",
" // NoOp\n",
"}"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"instance_type": "ml.t3.medium",
"kernelspec": {
"display_name": "conda_python3",
"display_name": "Python 3 (Data Science)",
"language": "python",
"name": "conda_python3"
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/datascience-1.0"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -506,9 +504,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
17 changes: 12 additions & 5 deletions 02_usecases/04_Content_Moderation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -350,16 +350,23 @@
"outputs": [],
"source": [
"%%javascript\n",
"Jupyter.notebook.save_checkpoint();\n",
"Jupyter.notebook.session.delete();"
"\n",
"try {\n",
" Jupyter.notebook.save_checkpoint();\n",
" Jupyter.notebook.session.delete();\n",
"}\n",
"catch(err) {\n",
" // NoOp\n",
"}"
]
}
],
"metadata": {
"instance_type": "ml.t3.medium",
"kernelspec": {
"display_name": "conda_python3",
"display_name": "Python 3 (Data Science)",
"language": "python",
"name": "conda_python3"
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/datascience-1.0"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -371,7 +378,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
17 changes: 12 additions & 5 deletions 02_usecases/05_Inappropriate_Text_Detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -510,16 +510,23 @@
"outputs": [],
"source": [
"%%javascript\n",
"Jupyter.notebook.save_checkpoint();\n",
"Jupyter.notebook.session.delete();"
"\n",
"try {\n",
" Jupyter.notebook.save_checkpoint();\n",
" Jupyter.notebook.session.delete();\n",
"}\n",
"catch(err) {\n",
" // NoOp\n",
"}"
]
}
],
"metadata": {
"instance_type": "ml.t3.medium",
"kernelspec": {
"display_name": "conda_python3",
"display_name": "Python 3 (Data Science)",
"language": "python",
"name": "conda_python3"
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/datascience-1.0"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -531,7 +538,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
17 changes: 12 additions & 5 deletions 02_usecases/06_Text_Classification_Prepare_Dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -410,16 +410,23 @@
"outputs": [],
"source": [
"%%javascript\n",
"Jupyter.notebook.save_checkpoint();\n",
"Jupyter.notebook.session.delete();"
"\n",
"try {\n",
" Jupyter.notebook.save_checkpoint();\n",
" Jupyter.notebook.session.delete();\n",
"}\n",
"catch(err) {\n",
" // NoOp\n",
"}"
]
}
],
"metadata": {
"instance_type": "ml.t3.medium",
"kernelspec": {
"display_name": "conda_python3",
"display_name": "Python 3 (Data Science)",
"language": "python",
"name": "conda_python3"
"name": "python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east-1:081325390199:image/datascience-1.0"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -431,7 +438,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 740be5b

Please sign in to comment.