2nd Course
2nd Course
**
4. **Which API is used to build performant, complex input pipelines from simple,
re-usable pieces that will feed your model's training or evaluation loops?**
**Answer:** tf.data.Dataset
**Answer:** A data source constructs a Dataset from data stored in memory or in one
or more files and a data transformation constructs a dataset from one or more
tf.data.Dataset objects.
**Answer:** It turns raw strings into an encoded representation that can be read by an
Embedding layer or Dense layer.
**Answer:** tf.keras.layers.Discretization
**Answer:** Normalization
**Answer:** When working with lookup layers with very large vocabularies
1. **Non-linearity helps in training your model at a much faster rate and with more
accuracy without the loss of your important information?**
**Answer:** True
2. **During the training process, each additional layer in your network can successively
reduce signal vs. noise. How can we fix this?**
**Answer:** Use non-saturating, nonlinear activation functions such as ReLUs.
3. **How does Adam (optimization algorithm) help in compiling the Keras model?**
**Answer:** Both by updating network weights iteratively based on training data and
by diagonal rescaling of the gradients.
5. **What is the significance of the Fit method while training a Keras model?**
**Answer:** Unlike the Keras Sequential API, we have to provide the shape of the input
to the model.
**Answer:** Multiple inputs and outputs and models with shared layers.
**Answer:** It adds a sum of the squared parameter weights term to the loss function.
1. **Fill in the blanks. When sending training jobs to Vertex AI, it is common to split most
of the logic into a _________ and a ___________ file.**
**Answer:** task.py
**Answer:** an init_.py
4. **To make your code compatible with Vertex AI, there are three basic steps that must
be completed in a specific order. Choose the answer that best describes those steps.**
**Answer:** First, upload data to Google Cloud Storage. Next, move code into a trainer
Python package. Then submit your training job with gcloud to train on Vertex AI.
5. **Fill in the blanks. You can use either pre-built containers or custom containers to
run training jobs. Both containers require you specify settings that Vertex AI needs to run
your training code, including __________, ____________, and ________.**