[go: nahoru, domu]

Skip to content

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

License

Notifications You must be signed in to change notification settings

hanszyx/workshop

 
 

Repository files navigation

Workshop/Book Outline

Book Outline

Quick Start Workshop (4-hours)

Workshop Paths

In this quick start hands-on workshop, you will build an end-to-end AI/ML pipeline for natural language processing with Amazon SageMaker. You will train and tune a text classifier to predict the star rating (1 is bad, 5 is good) for product reviews using the state-of-the-art BERT model for language representation. To build our BERT-based NLP text classifier, you will use a product reviews dataset where each record contains some review text and a star rating (1-5).

Quick Start Workshop 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
  • Detect statistical data bias 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 endpoint using SageMaker Hosting and SageMaker Endpoints
  • Automate ML workflow steps by building end-to-end model pipelines using SageMaker Pipelines

Workshop Instructions

1. Login to AWS Console

Console

2. Launch SageMaker Studio

Open the AWS Management Console

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

Back to SageMaker

Click on SageMaker Studio to set up Studio.

Studio

Open SageMaker Studio by clicking on the Launch App drop-down menu and selecting Studio (see screenshot below).

Open Studio

Loading Studio

3. Launch a New Terminal within Studio

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

Terminal Studio

4. Clone this GitHub Repo in the Terminal

Within the Terminal, run the following:

cd ~ && git clone https://github.com/awskieran/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.

5. Start the Workshop!

  • Now, in the navigation pane on the left-hand side of the screen in SageMaker Studio, navigate to workshop/00_quickstart/00_Overview.ipynb (see screenshot below). You may need to refresh your browser if you don't see the new workshop/ directory.
  • Start the workshop by running the steps in that notebook. (You can press Shift+Enter on each cell in the notebook to run each cell.)
  • While each cell is running, you will see an asterix next to that cell.
  • When each cell completes, the asterix will change to a number, and you will see the output of the code below each cell.

Select Workshop

Select Quickstart

Select Overview

  • When you get to the end of each notebook, then move on to the next notebook in the navigation pane on the left-hand side of the screen.
  • There are a total of 13 notebooks to complete (i.e., 00_Overview.ipynb - 12_Cleanup.ipynb)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 85.8%
  • Python 9.9%
  • HTML 1.6%
  • Scala 1.4%
  • Java 0.8%
  • Shell 0.2%
  • Other 0.3%