Which of the following statements a) , b) or c) is false?
A) Calling our MNIST cnn model's predict method as shown below predicts the classes of the digit images in its argument array (X_test) :
Predictions = cnn.predict(X_test)
B) You can check what the first sample digit should be by looking at y_test[0]:
[42]: y_test[0]
[42]: array([0., 0., 0., 0., 0., 0., 0., 1., 0., 0.], dtype=float32)
The one-hot encoding in the preceding output shows that the first sample is the digit 7.
C) The following code outputs the probabilities returned by the predict method for the first test sample:
[43]: for index, probability in enumerate(predictions[0]) :
Print(f'{index}: {probability:.10%}')
0: 0.0000000201%
1: 0.0000001355%
2: 0.0000186951%
3: 0.0000015494%
4: 0.0000000003%
5: 0.0000000012%
6: 0.0000000000%
7: 99.9999761581%
8: 0.0000005577%
9: 0.0000011416%
According to the preceding output, predictions[0] indicates that our cnn model believes this digit is a 7 with nearly 100% certainty. Not all predictions have this level of certainty.
D) All of the above statements are true.
Correct Answer:
Verified
Q42: Which of the following statements a), b)
Q43: Which of the following statements about a
Q44: A Keras _ layer reshapes its input
Q45: The following code creates a TensorBoard object:
Q46: Which of the following statements a), b)
Q48: To use TensorBoard, before you fit your
Q49: Which of the following statements a), b)
Q50: Which of the following statements is false?
A)
Q51: Which of the following statements is false?
A)
Q52: Consider the following code: cnn.add(Dense(units=10, activation='softmax'))
Which of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents