tf.keras.metrics.SparseTopKCategoricalAccuracy

Computes how often integer targets are in the top K predictions.

Inherits From: Mean, Metric, Layer, Module

k (Optional) Number of top elements to look at for computing accuracy. Defaults to 5.
name (Optional) string name of the metric instance.
dtype (Optional) data type of the metric result.

Stand