From 0126b15fb9d0372f743636f0645c13ce110a14da Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" <gardener@tensorflow.org> Date: Sun, 8 Nov 2020 14:44:17 -0800 Subject: [PATCH] Fixes the issue https://github.com/tensorflow/tensorflow/issues/44686 PiperOrigin-RevId: 341310003 Change-Id: I524fca2535e9ffbd6a177a3c33d8bf1eeb6f6290 --- tensorflow/python/keras/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/keras/callbacks.py b/tensorflow/python/keras/callbacks.py index 26ab971b82b..69d3516478b 100644 --- a/tensorflow/python/keras/callbacks.py +++ b/tensorflow/python/keras/callbacks.py @@ -1700,7 +1700,7 @@ class EarlyStopping(Callback): >>> callback = tf.keras.callbacks.EarlyStopping(monitor='loss', patience=3) >>> # This callback will stop the training when there is no improvement in - >>> # the validation loss for three consecutive epochs. + >>> # the loss for three consecutive epochs. >>> model = tf.keras.models.Sequential([tf.keras.layers.Dense(10)]) >>> model.compile(tf.keras.optimizers.SGD(), loss='mse') >>> history = model.fit(np.arange(100).reshape(5, 20), np.zeros(5),