What you need

You must have completed Lab 0 and have the following:

What you learn

In this lab, you will use a CNN model to do text classification

Step 1

In Cloud Datalab, click on the Home icon, and then navigate to notebooks/training-data-analyst/courses/machine_learning/deepdive/09_sequence/labs and open text_classification.ipynb.

Step 2

In Datalab, click on Clear | All Cells. Now read the narrative and execute each cell in turn until the section "Tensorflow/Keras Code"

Step 3

Open the model file model.py located in notebooks/training-data-analyst/courses/machine_learning/deepdive/09_sequence/labs/txtclsmodel/trainer and complete the TODOs

Step 4

Back in the text_classification.ipynb notebook, run the remaining cells.

©Google, Inc. or its affiliates. All rights reserved. Do not distribute.