diff --git a/sagemaker-python-sdk/mxnet_gluon_sentiment/mxnet_sentiment_analysis_with_gluon.ipynb b/sagemaker-python-sdk/mxnet_gluon_sentiment/mxnet_sentiment_analysis_with_gluon.ipynb index d7c63ef30a..750338b914 100644 --- a/sagemaker-python-sdk/mxnet_gluon_sentiment/mxnet_sentiment_analysis_with_gluon.ipynb +++ b/sagemaker-python-sdk/mxnet_gluon_sentiment/mxnet_sentiment_analysis_with_gluon.ipynb @@ -26,11 +26,14 @@ "metadata": {}, "outputs": [], "source": [ - "%%bash\n", - "mkdir data\n", + "!mkdir data\n", "\n", - "curl https://raw.githubusercontent.com/saurabh3949/Text-Classification-Datasets/master/stsa.binary.phrases.train > data/train\n", - "curl https://raw.githubusercontent.com/saurabh3949/Text-Classification-Datasets/master/stsa.binary.test > data/test " + "import boto3\n", + "\n", + "s3 = boto3.client(\"s3\")\n", + "\n", + "s3.download_file(\"sagemaker-sample-files\", \"datasets/text/SST2/sst2.train\", \"data/train\")\n", + "s3.download_file(\"sagemaker-sample-files\", \"datasets/text/SST2/sst2.test\", \"data/test\")" ] }, { @@ -97,11 +100,11 @@ "m = MXNet(\n", " \"sentiment.py\",\n", " role=get_execution_role(),\n", - " train_instance_count=1,\n", - " train_instance_type=\"ml.c4.xlarge\",\n", - " framework_version=\"1.6.0\",\n", - " py_version=\"py3\",\n", - " distributions={\"parameter_server\": {\"enabled\": True}},\n", + " instance_count=1,\n", + " instance_type=\"ml.c4.xlarge\",\n", + " framework_version=\"1.8.0\",\n", + " py_version=\"py37\",\n", + " distribution={\"parameter_server\": {\"enabled\": True}},\n", " hyperparameters={\n", " \"batch-size\": 8,\n", " \"epochs\": 2,\n", @@ -212,7 +215,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.5" + "version": "3.6.13" }, "notice": "Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License." },