Created
October 18, 2020 20:24
-
-
Save alexbrillant/3dd5b14900fe2c38ca645db6b63c1d08 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
model.compile( | |
optimizer=Adam(), | |
loss='mean_squared_error' | |
) | |
epochs = 25 | |
log_dir='logs' | |
model.fit( | |
train_data, # train dataset that yields (x, y) tuples | |
epochs=epochs, | |
validation_data=validation_data, # validation dataset that yields (x, y) tuples | |
callbacks=[ | |
TensorBoard(log_dir=log_dir, histogram_freq=1), # log metrics | |
KerasCallback(logdir, hparams) # log hparams | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment