1import datetime
2from tensorflow.keras.callbacks import TensorBoard
3
4# Set Folder for saving logs
5logDir = "logs/13-500Feature/" + datetime.datetime.now().strftime("%Y%m%d-%H%M%S") #If you are using linux
6print("logDir: ", logDir)
7
8# Train your model
9model.fit(x_train, y_train, batch_size=32, epochs=100,
10 validation_data=(x_test, y_test),
11 verbose=1,
12 callbacks = [tensorboard_callback]) # Use Checkpoint callback
13
14# Use In jupyter notebook or Google Colab
15
16%load_ext tensorboard
17%tensorboard --logdir logs