This lab will give you hands-on practice with TensorFlow 2.x model training, both locally and on AI Platform. After training, you will learn how to deploy your model to AI Platform for serving (prediction). You'll train your model to predict income category of a person using the United States Census Income Dataset.
This lab gives you an introductory, end-to-end experience of training and prediction on AI Platform. The lab will use a census dataset to:
The sample builds a classification model for predicting income category based on United States Census Income Dataset. The two income categories (also known as labels) are:
The sample defines the model using the Keras Sequential API. The sample defines the data transformations particular to the census dataset, then assigns these (potentially) transformed features to either the DNN or the linear portion of the model.
To launch AI Platform Notebooks:
https://cdn.qwiklabs.com/fnUEPKKDGG4Xw1nbWJRpVfg02LTmJLOrel2Ny42JQVk%3D
https://cdn.qwiklabs.com/XoalHYoeOlvhs7jtFOoGRhIlXS%2FrGGbFaVnsgDMNHZ4%3D
In the pop-up, confirm the name of the deep learning VM, for Region, select us-central1
and for Zone, select a zone within that region. Leave the remaining fields with their default and click Create.
The new VM will take 2-3 minutes to start.