tf.keras.metrics.binary_accuracy

View source on GitHub

tf.keras.metrics.binary_accuracy(
    y_true, y_pred, threshold=0.5
)