Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

tensorflow history plot

print(history.history.keys())
# summarize history for accuracy
plt.plot(history.history['accuracy'])
plt.plot(history.history['val_accuracy'])
plt.title('model accuracy')
plt.ylabel('accuracy')
plt.xlabel('epoch')
plt.legend(['train', 'test'], loc='upper left')
plt.show()
# summarize history for loss
plt.plot(history.history['loss'])
plt.plot(history.history['val_loss'])
plt.title('model loss')
plt.ylabel('loss')
plt.xlabel('epoch')
plt.legend(['train', 'test'], loc='upper left')
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: remove first row of dataframe 
Python :: reindex pandas dataframe from 0 
Python :: print random string from list python 
Python :: matplotlib x label rotation 
Python :: image in cv2 
Python :: plt.plot width line 
Python :: setwd python 
Python :: cv2 draw box 
Python :: python code region 
Python :: check gpu in tensorflow 
Python :: jupyter notebook dark theme 
Python :: how to install python3 on ubuntu 
Python :: python get newest file in directory 
Python :: how to get frequency of each elements in a python list 
Python :: print numpy version 
Python :: count none in list python 
Python :: concat dataFrame without index reset 
Python :: remove web linnks from string python 
Python :: python pandas drop column by index 
Python :: python random randint except a number 
Python :: sort two lists by one python 
Python :: how to calculate running time in python 
Python :: py get mouse coordinates 
Python :: utf8 python encodage line 
Python :: how to find wifi password using python 
Python :: numpy from csv 
Python :: is python easier than javascript 
Python :: python turtle square 
Python :: How do I mock an uploaded file in django? 
Python :: python install module from script 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =