Solved

Which of the Following Statements A), B) or C) Is

Question 47

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents