#### Checkpoints

Check that the Python model.py file has been created

/ 25

Check for a Tensorflow model in the /tensorflow/trained_model directory

/ 25

Check for successful run of a gcloud ai-platform training job called flights-*

/ 25

Check that a trained model has been saved to Google Storage

/ 25

# Machine Learning with TensorFlow

## GSP273

## Overview

In this lab, you learn how to use Google Cloud Machine Learning and TensorFlow 1.x to develop and evaluate prediction models using machine learning. TensorFlow is an open source, powerful, portable machine learning library developed by Google that can work with very large datasets.

This lab follows on from previous labs in this series where you created a basic prediction model using logistic regression with Spark and Pig and then used Cloud Dataflow to create training and test datasets using a pipeline that can also be used for prediction thereby eliminating the risk of training-serving skew with your prediction models. This lab is based on Chapter 9, Machine Learning Classifier Using TensorFlow, of the Data Science on the Google Cloud Platform book from O'Reilly Media, Inc.

You initially start by creating an experimental framework in Python to replicate the basic linear regression model using TensorFlow 1.x, and then expand this framework to evaluate models with more variables. This framework can then be used to compare the performance of these basic machine learning models to more complex machine learning models.

As with all of the other labs in this series, this lab provides useful experience working with data processing and data modelling techniques that will allow you to develop a data model that will predict whether flights will arrive at their destinations late given the specific details of the departure such as location, time of departure, actual departure delay, and taxi out time, etc.

The data set that is used provides historic information about internal flights in the United States retrieved from the US Bureau of Transport Statistics website. This data set can be used to demonstrate a wide range of data science concepts and techniques and is used in all of the other labs in the **Data Science on Google Cloud: Machine Learning** quest. The specific datasets used for this lab are the aggregated datasets developed in the previous lab in this quest, **Processing Time Windowed Data with Apache Beam and Cloud Dataflow (Java)**.

### Objectives

- Develop a basic TensorFlow 1.x experimental framework in Python
- Extend the framework to create a Linear Classifier model with additional features
- Deploy the experimental training and evaluation framework to Google Cloud ML

#### Crea un account Qwiklabs per leggere il resto del lab e tanto altro ancora.

- Acquisisci accesso temporaneo a Google Cloud Console.
- Oltre 200 lab dal livello iniziale a quelli più avanzati.
- Corsi brevi per apprendere secondo i tuoi ritmi.