Skip to content

AI and Machine Learning with Kubeflow, Amazon EKS, and SageMaker

Notifications You must be signed in to change notification settings

dansileshi/workshop

 
 

Repository files navigation

O'Reilly Book Coming Early 2021

Data Science on AWS

YouTube Videos, Meetups, Book, and Code: https://datascienceonaws.com

Data Science on AWS

Workshop Description

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).

Workshop Cost

This workshop is FREE, but would otherwise cost <25 USD. Workshop Cost

Workshop Description

Workshop Agenda

Workshop Paths

Workshop Paths

Workshop Contributors

Workshop Contributors

Workshop Instructions

1. Login to AWS Console

IAM

2. Create TeamRole IAM Role

IAM

Roles

Create Role

Select Service

Select Policy

Add Tags

Review Name

3. Update IAM Role Policy

Select IAM

Edit TeamRole

Click Attach Policies.

IAM Policy

Select AmazonS3FullAccess and click on Attach Policy.

Note: Reminder that you should allow access only to the resources that you need.

Attach Admin Policy

4. Launch an Amazon SageMaker Notebook Instance

Open the AWS Management Console

Back to SageMaker

In the AWS Console search bar, type SageMaker and select Amazon SageMaker to open the service console.

Notebook Instances

Create Studio

Pending Studio

Open Studio

Loading Studio

5. Launch a new Terminal within the Jupyter notebook

Click File > New > Terminal to launch a terminal in your Jupyter instance.

Terminal Studio

6. Clone this GitHub Repo in the Terminal

Within the Terminal, run the following:

cd ~ && git clone https://github.com/data-science-on-aws/workshop

If you see an error like the following, just re-run the command again until it works:

fatal: Unable to create '/home/sagemaker-user/workshop/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.

Note: This is not a fatal error ^^ above ^^. Just re-run the command again until it works.

7. Start the Workshop!

Navigate to 00_quickstart/ or 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.

Start Workshop

About

AI and Machine Learning with Kubeflow, Amazon EKS, and SageMaker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 82.1%
  • Python 12.4%
  • Scala 1.9%
  • HTML 1.7%
  • Java 1.2%
  • Shell 0.3%
  • Other 0.4%