All Coursera Quiz Answers

TensorFlow on Google Cloud Coursera Quiz Answers

Hello Friends In this article i am gone to share TensorFlow on Google Cloud Coursera Quiz Answers with you..

Enrol Link:  TensorFlow on Google Cloud

TensorFlow on Google Cloud Coursera Quiz Answers


 

Introduction to the TensorFlow Ecosystem Quiz Answers

Question 1)
Which of the following statements is true of TensorFlow?

  • TensorFlow is a scalable and single-platform programming interface for implementing and running machine learning algorithms, including convenience wrappers for deep learning.
  • Although able to run on other processing platforms, TensorFlow 2.0 is not yet able to run on Tensor Processing Units (or TPU’s).
  • Although able to run on other processing platforms, TensorFlow 2.0 is not yet able to run on Graphical Processing Units (or GPU’s).
  • TensorFlow is a scalable and multi-platform programming interface for implementing and running machine learning algorithms, including convenience wrappers for deep learning.

Question 2)
How does TensorFlow represent numeric computations?

  • Using a Directed Acyclic Graph (or DAG)
  • Flow chart
  • Both Using a Directed Acyclic Graph (or DAG) and Flow chart
  • None of the options are correct

Question 3)
Which are useful components when building custom Neural Network models?

  • tf.losses
  • tf.metrics
  • tf.optimizers
  • All of the options are correct.

Question 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.

  • tf.Tensor
  • tf.data.Dataset
  • tf.device
  • All of the options are correct.

Question 5)
What operations can be performed on tensors?

  • They can be reshaped
  • They can be sliced
  • They can be both reshaped and sliced
  • None of the options are correct.

Question 6)
Which of the following is true when we compute a loss gradient?

  • TensorFlow records all operations executed inside the context of a tf.GradientTape onto a tape.
  • It uses tape and the gradients associated with each recorded operation to compute the gradients.
  • The computed gradient of a recorded computation will be used in reverse mode differentiation.
  • All options are correct.

 

Design and Build Input Data Pipeline Quiz Answers

Question 1)
What are distinct ways to create a dataset?

  • A data source constructs a Dataset from data stored in memory or in one or more files.
  • A data transformation constructs a dataset from one or more tf.data.Dataset objects.
  • 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.
  • None of the options are correct.

Question 2)
Which is true regarding feature columns?

  • Feature columns describe how the model should use raw output data from your features dictionary.
  • Feature columns describe how the model should use raw output data from your TPU’s.
  • Feature columns describe how the model should use raw input data from your features dictionary.
  • Feature columns describe how the model should use a graph to plot a line.

Question 3)
Which of the following is true about embedding?

  • An embedding is a weighted sum of the feature crossed values.
  • Embedding is a handy adapter that allows a network to incorporate sparse or categorical data.
  • The number of embeddings is the hyperparameter to your machine learning model.
  • All options are correct.

Question 4)
What is the use of tf.keras.layers.TextVectorization?

  • It performs feature-wise normalization of input features.
  • It turns continuous numerical features into bucket data with discrete ranges.
  • It turns raw strings into an encoded representation that can be read by an Embedding layer or Dense layer.
  • It turns string categorical values into encoded representations that can be read by an Embedding layer or Dense layer.

Question 5)
Which of the following is not a part of Categorical features preprocessing?

  • tf.keras.layers.CategoryEncoding
  • tf.keras.layers.Hashing
  • tf.keras.layers.IntegerLookup
  • tf.keras.layers.Discretization

Question 6)
Which of the following layers is not non-trainable?

  • Discretization
  • Hashing
  • Normalization
  • StringLookup

Question 7)
When should you avoid using the Keras function adapt()?

  • When working with lookup layers with very large vocabularies
  • When using TextVectorization while training on a TPU pod
  • When using StringLookup while training on multiple machines via ParameterServerStrategy
  • When working with lookup layers with very small vocabularies

Question 8)
Which of the following is a part of Keras preprocessing layers?

  • Image data augmentation
  • Image preprocessing
  • Numerical features preprocessing
  • All of the options are correct.

 

Building Neural Networks in TensorFlow with Keras API Quiz Answers

Question 1)
Non-linearity helps in training your model at a much faster rate and with more accuracy without the loss of your important information?

  • True
  • False

Question 2)
During the training process, each additional layer in your network can successively reduce signal vs. noise. How can we fix this?

  • Use non-saturating, linear activation functions.
  • Use non-saturating, nonlinear activation functions such as ReLUs.
  • Use sigmoid or tanh activation functions.
  • None of the options are correct.

Question 3)
How does Adam (optimization algorithm) help in compiling the Keras model?

  • By updating network weights iteratively based on training data
  • By diagonal rescaling of the gradients
  • Both by updating network weights iteratively based on training data by diagonal rescaling of the gradients
  • None of the options are correct.

Question 4)
The predict function in the tf.keras API returns what?

  • Numpy array(s) of predictions
  • Input_samples of predictions
  • Both numpy array(s) of predictions & input_samples of predictions
  • None of the options are correct.

Question 5)
What is the significance of the Fit method while training a Keras model?

  • Defines the number of steps per epochs
  • Defines the number of epochs
  • Defines the validation steps
  • Defines the batch size

Question 6)
Select the correct statement regarding the Keras Functional API.

  • Unlike the Keras Sequential API, we do not have to provide the shape of the input to the model.
  • Unlike the Keras Sequential API, we have to provide the shape of the input to the model.
  • The Keras Functional API does not provide a more flexible way for defining models.
  • None of the options are correct.

Question 7)
The Keras Functional API can be characterized by having:

  • Multiple inputs and outputs and models with shared layers.
  • Single inputs and outputs and models with shared layers.
  • Multiple inputs and outputs and models with non-shared layers.
  • None of the options are correct.

Question 8)
How does regularization help build generalizable models ?

  • By adding dropout layers to our neural networks
  • By using image processing APIS to find out accuracy
  • By adding dropout layers to our neural networks and by using image processing APIS to find out accuracy
  • None of the options are correct.

Question 9)
The L2 regularization provides which of the following?

  • It subtracts a sum of the squared parameter weights term to the loss function.
  • It multiplies a sum of the squared parameter weights term to the loss function.
  • It adds a sum of the squared parameter weights term to the loss function.
  • None of the options are correct.

 

Training at Scale with Vertex AI Quiz Answers

Question 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.

  • task.py, model.py
  • task.json, model.json
  • task.avro, model.avro
  • task.xml, model.xml

Question 2)
Which file is the entry point to your code that Vertex AI will start and contains details such as “how to parse command-line arguments and where to write model outputs?

  • model.py
  • tmodel.json
  • tmodel.avro
  • task.py

Question 3)
When you package up a TensorFlow model as a Python Package, what statement should every Python module contain in every folder?

  • model.py
  • tmodel.json
  • tmodel.avro
  • an init_.py

Question 4)
To make your code compatible with Verte AI, there are three basic steps that must be completed in a specific order. Choose the answer that best describes those steps.

  • First, upload data to Google Cloud Storage. Then submit your training job with gcloud to train on Vertex AI. Next, move code into a trainer Python package.
  • First, download data from Google Cloud Storage. Then submit your training job with gcloud to train on Vertex AI. Next, move code into a trainer Python package.
  • 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.
  • First, move code into a trainer Python package. Next, upload data to Google Cloud Storage. Then submit your training job with gcloud to train on Vertex AI.

Question 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 ________.

  • Source distribution name, job name, worker pool
  • Region, source distribution, custom URI
  • Region, display-name, worker-pool-spec
  • Cloud storage bucket name, display-name, worker-pool-spec