tensorboard code example
Example 1: how to use tensorboard
import datetime
from tensorflow.keras.callbacks import TensorBoard
# Set Folder for saving logs
logDir = "logs/13-500Feature/" + datetime.datetime.now().strftime("%Y%m%d-%H%M%S") #If you are using linux
print("logDir: ", logDir)
# Train your model
model.fit(x_train, y_train, batch_size=32, epochs=100,
validation_data=(x_test, y_test),
verbose=1,
callbacks = [tensorboard_callback]) # Use Checkpoint callback
# Use In jupyter notebook or Google Colab
%load_ext tensorboard
%tensorboard --logdir logs
Example 2: mlflow tensorboard
tensorboard --logdir=/var/folders/0q/c_zjyddd4hn5j9jkv0jsjvl00000gp/T/tmp7af2qzw4