TensorFlow Flashcards
Tensor Flow, Vertex AI
Which of the following statements is true of TensorFlow?
TensorFlow is a scalable and multi platform programming interface for implementing and
running machine learning algorithms, including convenience wrappers for deep learning.
How does TensorFlow represent numeric computations?
Using a Directed Acyclic Graph (or DAG)
Which are useful components when building custom Neural Network models?
tf.losses
tf.metrics
tf.optimizers
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.data.Dataset
What operations can be performed on tensors
They can be both reshaped and sliced
What is true when we compute a loss gradient? (3 Things)
- 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.
What are distinct ways to create a dataset?
Feature columns describe how the model should use raw input data from your features
dictionary.
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 spores or categorical data.
- The number of embeddings is the hyperparameter to your machine learning model.
What is the use of tf.keras.layers.TextVectorization?
It turns raw strings into an encoded representation that can be read by an Embedding layer or Dense layer.
Which is not a part of Categorical features preprocessing
tf.keras.layers.Discretization
Which of the layers is non-trainable?
Hashing
When should you avoid using the Keras function adapt()?
When working with lookup layers with very large vocabularies
Which is a part of Keras preprocessing layers?
- Image data augmentation
- Image preprocessing
- Numerical features preprocessing
True or false: Non-linearity helps in training your model at a much faster rate and with more accuracy without the loss of your important information?
True
During the training process, each additional layer in your network can successively reduce signal vs. noise. How can we fix this?
Use non-saturating, nonlinear activation functions such as ReLUs.