Welcome to QA's learning platform (formerly Cloud Academy). Learn more about our journey here, opens in a new tab.
hands-on lab

TensorFlow Machine Learning on the Amazon Deep Learning AMI

Difficulty: Intermediate
Duration: Up to 1 hour and 40 minutes
Students: 2,036
Rating: 4.1/5
On average, students complete this lab in50m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

TensorFlow is a popular framework used for machine learning. The Amazon Deep Learning AMI comes bundled with everything you need to start using TensorFlow from development through to production. In this Lab, you will develop, visualize, serve, and consume a TensorFlow machine learning model using the Amazon Deep Learning AMI.

Learning objectives

Upon completion of this lab, you will be able to:

  • Create machine learning models in TensorFlow
  • Visualize TensorFlow graphs and the learning process in TensorBoard
  • Serve trained TensorFlow models with TensorFlow Serving
  • Create clients that consume served TensorFlow models, all with the Amazon Deep Learning AMI

Prerequisites

Familiarity with the following will be beneficial, but is not required:

  • Working at the Linux command line
  • The Python programming language
  • Some linear algebra knowledge (basic vector and matrix operations)
  • A basic understanding of neural networks 

Lab Environment

Before completing the lab instructions, the environment will look as follows:

After completing the lab instructions, the environment should look similar to:

 

Updates

May 1st, 2025 - Resolved an issue with Amazon EC2 instance availability

June 28th, 2023 - Resolved the tunnel creation issue

December 2nd, 2022 - Updated lab to use EC2 Instance Connect and added a check

January 17th, 2022 - Improved instructions for establishing an SSH tunnel with PuTTY for Windows users

January 12th, 2022 - Updated and added SSH tunnel instructions

January 3rd, 2022 - Updated to use Python 3

August 1st, 2021 - Fixed typo in lab instructions

December 7th. 2020 - Updated instructions to address an issue that prevented a lab step from being able to be completed successfully

April 15th, 2020 - Updated instructions to provide for a more streamlined lab experience

January 10th, 2019 - Added a validation lab Step to check the work you perform in the lab

Covered topics

Hands-on Lab UUID

Lab steps

Logging In to the Amazon Web Services Console
Connecting to the Virtual Machine Using EC2 Instance Connect
Learning the Basics of TensorFlow
Starting a Jupyter Notebook Server
Creating a Neural Network in TensorFlow
Visualizing the Learning of the Neural Network with TensorBoard
Serving a Model with TensorFlow Serving
Consuming the Model Served by TensorFlow Serving