Created
June 28, 2021 12:39
-
-
Save jeetaf/c7afc809fc09cfb414ab8b0c15bb70e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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