Skip to content

Commit 2de5f45

Browse files
author
Paolo Di Francesco
committed
Update instructions for sentiment-analysis
Fix README and notebook
1 parent fbb8046 commit 2de5f45

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Introduction/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ When you're finished, return here to move on to the next module.
7777

7878
## Natural Language Processing Use Case: Sentiment Analysis
7979

80-
In contrast to the previous modules, which used some of Amazon SageMaker's built-in algorithms, in this module we'll use a deep learning framework within Amazon SageMaker with our own script defining a custom model. Assuming you have cloned this repository into your notebook environment (which you should do if you haven't), open the `notebooks` directory of the repository and click on the `sentiment-analysis.ipynb` notebook to open it. Make sure you are using the `Python 3 (Data Science)` kernel if you're using SageMaker Studio.
80+
In contrast to the previous modules, which used some of Amazon SageMaker's built-in algorithms, in this module we'll use a deep learning framework within Amazon SageMaker with our own script defining a custom model. Assuming you have cloned this repository into your notebook environment (which you should do if you haven't), open the `notebooks` directory of the repository and click on the `sentiment-analysis.ipynb` notebook to open it. Make sure you are using the `Python 3 (TensorFlow 2.3 Python 3.7 CPU Optimized)` kernel if you're using SageMaker Studio.
8181

8282
When you're finished, return here and go on to the Extra Credit module or Cleanup Guide.
8383

notebooks/sentiment-analysis.ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"- Batch Transform: for offline, asynchronous predictions on large batches of data. \n",
1717
"- Instance type choices: many different kinds of CPU and GPU instances are available in SageMaker, and are applicable to different use cases.\n",
1818
"\n",
19+
"***Prerequisites:***\n",
20+
"- In SageMaker Studio, for kernel select **Python 3 (TensorFlow 2.3 Python 3.7 CPU Optimized)**; for a SageMaker Notebook Instance, select the kernel **conda_tensorflow2_py36**.\n",
21+
"\n",
1922
"# Prepare the dataset\n",
2023
"\n",
2124
"We'll begin by loading the reviews dataset, and padding the reviews so all reviews have the same length. Each review is represented as an array of numbers, where each number represents an indexed word. We'll also pad shorter reviews to match a maximum specified length."
@@ -27,6 +30,7 @@
2730
"metadata": {},
2831
"outputs": [],
2932
"source": [
33+
"!pip install matplotlib==3.4.1\n",
3034
"%matplotlib inline\n",
3135
"\n",
3236
"import logging\n",

0 commit comments

Comments
 (0)