Giter Site home page Giter Site logo

trellixvulnteam / data-science-on-aws-workshop-2021-05-15_3nrj Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chubaoraka/data-science-on-aws-workshop-2021-05-15

0.0 0.0 0.0 829.88 MB

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

Home Page: https://datascienceonaws.com/

License: Apache License 2.0

Shell 0.22% JavaScript 0.06% Python 9.66% Java 0.83% Scala 1.35% R 0.13% CSS 0.01% Makefile 0.02% HTML 3.35% Batchfile 0.06% Jupyter Notebook 84.30% Dockerfile 0.02% Starlark 0.01%

data-science-on-aws-workshop-2021-05-15_3nrj's Introduction

O'Reilly Book

Data Science on AWS

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

Data Science on AWS

Workshop Description

In this hands-on workshop, we will build an end-to-end AI/ML pipeline for natural language processing with Amazon SageMaker. We will train and tune a text classifier to classify text-based product reviews 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).

Learning Objectives

Attendees will learn how to do the following:

  • Ingest data into S3 using Amazon Athena and the Parquet data format
  • Visualize data with pandas, matplotlib on SageMaker notebooks
  • Run data bias analysis with SageMaker Clarify
  • Perform feature engineering on a raw dataset using Scikit-Learn and SageMaker Processing Jobs
  • Store and share features using SageMaker Feature Store
  • Train and evaluate a custom BERT model using TensorFlow, Keras, and SageMaker Training Jobs
  • Evaluate the model using SageMaker Processing Jobs
  • Track model artifacts using Amazon SageMaker ML Lineage Tracking
  • Run model bias and explainability analysis with SageMaker Clarify
  • Register and version models using SageMaker Model Registry
  • Deploy a model to a REST Inference Endpoint using SageMaker Endpoints
  • Automate ML workflow steps by building end-to-end model pipelines using SageMaker Pipelines

Workshop Cost

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

Workshop Agenda

Workshop Agenda

Workshop Paths

Quick Start (All-In-One Workshop Path)

Workshop Paths

Workshop Contributors

Workshop Contributors

Workshop Instructions

Note: This workshop will create an ephemeral AWS acccount for each attendee. This ephemeral account is not accessible after the workshop. You can, of course, clone this GitHub repo and reproduce the entire workshop in your own AWS Account.

0. Logout of All AWS Consoles Across All Browser Tabs

If you do not logout of existing AWS Consoles, things will not work properly.

AWS Account Logout

Please logout of all AWS Console sessions in all browser tabs.

1. Login to the Workshop Portal (aka Event Engine).

THE LINK WILL BE PROVIDED TO YOU

Event Box Launch

Event Box Access AWS Account

Event Engine Terms and Conditions

Event Engine Login

Event Engine Dashboard

2. Login to the AWS Console

Event Engine AWS Console

Take the defaults and click on Open AWS Console. This will open AWS Console in a new browser tab.

If you see this message, you need to logout from any previously used AWS accounts.

AWS Account Logout

Please logout of all AWS Console sessions in all browser tabs.

Double-check that your account name is similar to TeamRole/MasterKey as follows:

IAM Role

If not, please logout of your AWS Console in all browser tabs and re-run the steps above!

3. Launch SageMaker Studio

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.

SageMaker Studio

Open SageMaker Studio

Loading Studio

4. Launch a New Terminal within Studio

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

Terminal Studio

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

6. Start the Workshop!

Navigate to 00_quickstart/ in SageMaker Studio and start the workshop!

You may need to refresh your browser if you don't see the new workshop/ directory.

Start Workshop

data-science-on-aws-workshop-2021-05-15_3nrj's People

Contributors

albertvillanova avatar animetauren avatar antje avatar cfregly avatar chubaoraka avatar ehsanmok avatar jtrollin avatar nrauschmayr avatar setheliot avatar sharms avatar stephensmithwick avatar trellixvulnteam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.