Skip to content

Instantly share code, notes, and snippets.

@jeetaf
Created June 28, 2021 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeetaf/c7afc809fc09cfb414ab8b0c15bb70e1 to your computer and use it in GitHub Desktop.
Save jeetaf/c7afc809fc09cfb414ab8b0c15bb70e1 to your computer and use it in GitHub Desktop.
# Display training progress by printing a single dot for each completed epoch
class PrintDot(keras.callbacks.Callback):
def on_epoch_end(self, epoch, logs):
if epoch % 100 == 0: print('')
print('.', end='')
EPOCHS = 1000
history = model.fit(
normed_train_data, train_labels,
epochs=EPOCHS, validation_split = 0.2, verbose=0,
callbacks=[PrintDot()])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment