Tensorflow API: What does the metric `tf.keras.metrics.TopKCategoricalAccuracy` do?
Result of tf.keras.metrics.TopKCategoricalAccuracy() will be between 0 &amp; 1. Default value of the argument k is 5.
The result is 1 because for both the samples, the actual value is within the top 5 predictions.