Tensorflow on Google Cloud Flashcards

1
Q

What is a Tensor?

A

Tensor represents a n-dimensional array of data (scalar, vector, matrix, n-dimensional matrix)

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

Explain Tensorflow layering architecture

A

It consists of multiple layers, from the lowest level in C++, over Python, Python modules and in the end high level python functions.

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

How Tensorflow represent numerical operations?

A

Using a Directed Acyclic Graph (DAG)

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

What is the difference between tf.constant and tf.Variable

A

tf.constant - creates a constant tensor that can’t be changed
tf.Variable - creates a tensor that can change its value

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

What is Keras?

A

Keras is a high-level API that enables you to work with Tensorflow to load data, train and evaluate models, create layers, etc. It represents an abstraction layer that is much easier to use.

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

What are some basic methods working with models?

A

model.compile() - define learning rate, loss function, optimizer…
model.fit() - start the training and provide additional things like number of epohs, train and test dataset
model.evaluate() - get model metrics

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

What is tf.data API?

A

It is used to create data pipelines in Tensorflow. You can read data, do some transformations, create features and many more.

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