PiperOrigin-RevId: 341310003
Change-Id: I524fca2535e9ffbd6a177a3c33d8bf1eeb6f6290
This commit is contained in:
A. Unique TensorFlower 2020-11-08 14:44:17 -08:00 committed by TensorFlower Gardener
parent e5d3ef9fd0
commit 0126b15fb9

View File

@ -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),