aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/keras
diff options
context:
space:
mode:
authorGravatar Yanbo Liang <ybliang8@gmail.com>2018-09-20 15:49:40 -0700
committerGravatar Yanbo Liang <ybliang8@gmail.com>2018-09-20 15:49:40 -0700
commit039ddaa6c0af4be4291383564db5a964d0035c1d (patch)
treeb674df4e4dcf56abbe6862cc5243f8ecb8165caf /tensorflow/python/keras
parent1e821cd9a02b59a90a8b983759cf74eded16265f (diff)
Fix bad indentation
Diffstat (limited to 'tensorflow/python/keras')
-rw-r--r--tensorflow/python/keras/metrics_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/python/keras/metrics_test.py b/tensorflow/python/keras/metrics_test.py
index 43ac5b7ead..5f5565d4d5 100644
--- a/tensorflow/python/keras/metrics_test.py
+++ b/tensorflow/python/keras/metrics_test.py
@@ -108,13 +108,13 @@ class KerasMetricsTest(test.TestCase):
y_pred = K.variable(np.array([[0.3, 0.2, 0.1], [0.1, 0.2, 0.7]]))
y_true = K.variable(np.array([1, 0]))
result = K.eval(
- metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=3))
+ metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=3))
self.assertEqual(result, 1)
result = K.eval(
- metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=2))
+ metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=2))
self.assertEqual(result, 0.5)
result = K.eval(
- metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=1))
+ metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=1))
self.assertEqual(result, 0.)
def test_top_k_categorical_accuracy(self):