Register for early access directly on our website.
Request one of our talks for your conference or meetup.
In this workshop, we build a natural language processing (NLP) model to classify sample Twitter comments and customer-support emails using the state-of-the-art BERT model for language representation.
To build our BERT-based NLP model, we use the Amazon Customer Reviews Dataset which contains 150+ million customer reviews from Amazon.com for the 20 year period between 1995 and 2015. In particular, we train a classifier to predict the star_rating
(1 is bad, 5 is good) from the review_body
(free-form review text).
This workshop is FREE, but would otherwise cost <25 USD.
Please logout of your AWS Console in all browser tabs before you continue.
Take the defaults and click on Open AWS Console. This will open AWS Console in a new browser tab.
Double-check that your account name is something like IibsAdminAccess-DO-NOT-DELETE...
as follows:
If not, please logout of your AWS Console in all browser tabs and re-run the steps above!
Open the AWS Management Console
In the AWS Console search bar, type SageMaker
and select Amazon SageMaker
to open the service console.
In the Notebook instance name text box, enter workshop
.
Choose ml.t3.medium
. We'll only be using this instance to launch jobs. The training job themselves will run either on a SageMaker managed cluster or an Amazon EKS cluster.
Volume size 250
- this is needed to explore datasets, build docker containers, and more. During training data is copied directly from Amazon S3 to the training cluster when using SageMaker. When using Amazon EKS, we'll setup a distributed file system that worker nodes will use to get access to training data.
In the IAM role box, select the default TeamRole
, leave the rest to its defaults, and then click Create notebook instance
.
On the Notebook instances
section you should see the status change from Pending
-> InService
While the notebook spins up, continue to work on the next section. We'll come back to the notebook when it's ready.
Click on the notebook
instance to see the instance details.
Click on the IAM role link and navigate to the IAM Management Console.
Click Attach Policies
.
Select IAMFullAccess
and click on Attach Policy
.
Note: Reminder that you should allow access only to the resources that you need.
Confirm the Policies
Note: Proceed when the status of the notebook instance changes from Pending
to InService
.
Click File
> New
> [...scroll down...] Terminal
to launch a terminal in your Jupyter instance.
Within the Jupyter terminal, run the following:
cd ~/SageMaker && git clone https://github.com/data-science-on-aws/workshop
Navigate to 01_setup/
in your Jupyter notebook and start the workshop!
You may need to refresh your browser if you don't see the new workshop/
directory.