Question 1
Which of these steps are needed for building a model with the Functional API? (Select three from the list below)
Explicitly define an input layer to the model.
Define the input layer of the model using any Keras layer class (e.g., Flatten(), Dense(), …)
Define disconnected intermediate layers of the model.
Connect each layer using python functional syntax.
Define the model using the input and output layers.
Define the model using only the output layer(s).
Question 2
Is the following code correct for building a model with the Sequential API?
False
True
3.
Question 3
Only a single input layer can be defined for a functional model.
False
True
4.
Question 4
What are Branch Models ?
A model architecture with a single recurring path.
A model architecture where you can split the model into different paths, and cannot merge them later.
A model architecture with non-linear topology, shared layers, and even multiple inputs or outputs.
A model architecture with linear stack of layers.
5.
Question 5
One of the advantages of the Functional API is the option to build branched models with multiple outputs, where different loss functions can be implemented for each output.
True
False
6.
Question 6
A siamese network architecture has:
2 inputs, 2 outputs
1 input, 1 output
2 inputs, 1 output
1 input, 2 outputs
7.
Question 7
What is the output of each twin network inside a Siamese Network architecture?
A softmax probability
An output vector
Binary value, 1 or 0
A number
8.
Question 8
What is the purpose of using a custom contrastive loss function for a siamese model?
A custom loss function is required for using the RMSprop() optimizer.
As a custom built function, it provides better results and it is faster to run.
A custom built function is required because it is not possible to use a built-in loss function with the Lambda layer.
It is a custom built function that can calculate the loss on similarity comparison between two items.
Question 1
Which of these steps are needed for building a model with the Functional API? (Select three from the list below)
Explicitly define an input layer to the model.
Define the input layer of the model using any Keras layer class (e.g., Flatten(), Dense(), …)
Define disconnected intermediate layers of the model.
Connect each layer using python functional syntax.
Define the model using the input and output layers.
Define the model using only the output layer(s).
Answer: 1, 4, 5(Answer)
Question 2
Is the following code correct for building a model with the Sequential API?
False
True
Answer:False
3.
Question 3
Only a single input layer can be defined for a functional model.
False
True
Answer: False
4.
Question 4
What are Branch Models ?
A model architecture with a single recurring path.
A model architecture where you can split the model into different paths, and cannot merge them later.
A model architecture with non-linear topology, shared layers, and even multiple inputs or outputs.
A model architecture with linear stack of layers.
Answer:A model architecture with non-linear topology, shared layers, and even multiple inputs or outputs.
5.
Question 5
One of the advantages of the Functional API is the option to build branched models with multiple outputs, where different loss functions can be implemented for each output.
True
False
Answer: True
6.
Question 6
A siamese network architecture has:
2 inputs, 2 outputs
1 input, 1 output
2 inputs, 1 output
1 input, 2 outputs
Answer: 2 inputs, 1 output
7.
Question 7
What is the output of each twin network inside a Siamese Network architecture?
A softmax probability
An output vector
Binary value, 1 or 0
A number
Answer:An output vector
8.
Question 8
What is the purpose of using a custom contrastive loss function for a siamese model?
A custom loss function is required for using the RMSprop() optimizer.
As a custom built function, it provides better results and it is faster to run.
A custom built function is required because it is not possible to use a built-in loss function with the Lambda layer.
It is a custom built function that can calculate the loss on similarity comparison between two items.
Answer: It is a custom built function that can calculate the loss on similarity comparison between two items.