M4 Flashcards

1
Q

What is tensor flow?

A

Open source - high performance library for numerical and computation that uses directed graphs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are various abstraction layers of TF

A

CPU-GPU-TPU-android
Core TF, C++
Core TF Python == Python gives full control
tf.losses, tf.metrics, tf.optimizers, etc. == Components useful for building NN Models
tf.esimator, tf.keras, tf.data == High level APIs for distributed learning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which are useful components when building custom Neural Network models?

A

all:
tf.losses
tf.metrics
tf.optimizers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does TensorFlow represent numeric computations?

A

Using a Directed Acyclic Graph (or DAG)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

All:
It uses tape and the gradients associated with each recorded operation to compute the gradients.
check

The computed gradient of a recorded computation will be used in reverse mode differentiation.

TensorFlow records all operations executed inside the context of a tf.GradientTape onto a tape.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following statements is true of TensorFlow?

A

TensorFlow is a scalable and multi platform programming interface for implementing and running machine learning algorithms, including convenience wrappers for deep learning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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.

A

tf.data.Dataset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does The tf.keras.layers. TextVectorization

A

It transforms a batch of strings, where one example equals one string into one of two things, either a list of token indices, where one example equals one detensor of integer token indices, or a dense representation with one example equal to one detensor of float values representing data about the examples tokens. Essentially, the TextVectorization layer turns raw strings into an encoded representation that can be read by an Embedding layer or Dense layer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what does tf.keras Discretization layer do?

A

this layer turns continuous numerical features into bucket data, with discrete ranges

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly