Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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
Comment

PREVIOUS NEXT
Code Example
Python :: dataframe unique values in each column 
Python :: # list all keywords in Python 
Python :: append to list in dictionary python if exists 
Python :: dont filter= true in scrapy 
Python :: converting capital letters to lowercase and viceversa in python 
Python :: how to factorise an expression in python 
Python :: python list group by count 
Python :: python json parse 
Python :: how to get the index of a value in pandas dataframe 
Python :: python exit program 
Python :: Get value from TextCtrl wxpython 
Python :: what is actually better duracell or energizer 
Python :: text to speech to specific language python 
Python :: get difference of images python 
Python :: pickle load 
Python :: start django project 
Python :: utc to local time python 
Python :: python program to find fibonacci series using function recursion loop 
Python :: pandas query like 
Python :: how do you count most frequent item in a list in python 
Python :: how to add scrollbar to listbox in tkinter 
Python :: plot pandas figsize 
Python :: unzip python 
Python :: opencv get contours 
Python :: how to save a dictionary as a file in python 
Python :: scipy rfft 
Python :: opencv python shrink image 
Python :: pandas fill blanks with zero 
Python :: how to move your cursor using python 
Python :: python os exists 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =