Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Plotting keras model trainning history

history = model.fit()
print(history.history.keys())

import matplotlib.pylab as plt
from matplotlib.pyplot import figure
figure(figsize=(8, 6))
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 :: random with probability python 
Python :: flip pyplot python 
Python :: django.db.utils.OperationalError: no such table: 
Python :: python display map 
Python :: how to clear command prompt python 
Python :: Writing Bytes to a File in python 
Python :: save dataframe as csv 
Python :: python get html info 
Python :: rename files in folder python 
Python :: random forrest plotting feature importance function 
Python :: average within group by pandas 
Python :: how to do channel first in pytorch 
Python :: python global site packages 
Python :: delete index in df 
Python :: switching versions of python 
Python :: reduce in python 
Python :: python save input to text file 
Python :: python download video from url requests 
Python :: python how to copy a 2d array leaving out last column 
Python :: get index pandas condition 
Python :: how to get the live website html in python 
Python :: pandas filter rows by value in list 
Python :: print all alphabets from a to z in python 
Python :: how to change a string to small letter in python 
Python :: find nan values in a column pandas 
Python :: audacity 
Python :: how to change a thread name in python 
Python :: write json to file python 
Python :: hypixel main ip 
Python :: PIL Make Circle 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =