Skip to content

Instantly share code, notes, and snippets.

@alexbrillant
Created October 18, 2020 20:24
Show Gist options
  • Save alexbrillant/3dd5b14900fe2c38ca645db6b63c1d08 to your computer and use it in GitHub Desktop.
Save alexbrillant/3dd5b14900fe2c38ca645db6b63c1d08 to your computer and use it in GitHub Desktop.
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