TensorFlow 2.0 Beta is available Learn more

tf.keras.metrics.sparse_top_k_categorical_accuracy

Aliases:

  • tf.compat.v1.keras.metrics.sparse_top_k_categorical_accuracy
  • tf.compat.v2.keras.metrics.sparse_top_k_categorical_accuracy
  • tf.compat.v2.metrics.sparse_top_k_categorical_accuracy
  • tf.keras.metrics.sparse_top_k_categorical_accuracy
tf.keras.metrics.sparse_top_k_categorical_accuracy(
    y_true,
    y_pred,
    k=5
)
View source on GitHub