Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

keras plot history

import keras
from matplotlib import pyplot as plt
history = model1.fit(train_x, train_y,validation_split = 0.1, epochs=50, batch_size=4)
plt.plot(history.history['acc'])
plt.plot(history.history['val_acc'])
plt.title('model accuracy')
plt.ylabel('accuracy')
plt.xlabel('epoch')
plt.legend(['train', 'val'], loc='upper left')
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: python format seconds to hh mm ss 
Python :: matplotlib figsize 
Python :: matplotlib.pyplot imshow size 
Python :: python text tkinter not typable 
Python :: import datetime 
Python :: set recursion limit python 
Python :: running selenium on google colab 
Python :: python pygame screen example 
Python :: use incognito mode in selenium 
Python :: how to create a superuser in django 
Python :: get text from txt file python 
Python :: python date add days 
Python :: django flash message 
Python :: conda install spacy 
Python :: record the amount of time ittales for code to run python 
Python :: esp32 micropython timer 
Python :: list files in s3 folder python 
Python :: instal cython 
Python :: create python virtual environment 
Python :: index to datetime pandas 
Python :: python selenium select dropdown 
Python :: DeprecationWarning: executable_path has been deprecated, please pass in a Service object 
Python :: pytorch check gpu 
Python :: for loop in df rows 
Python :: create a directory python 
Python :: folium anaconda 
Python :: numpy install wtih conda 
Python :: show image in python 
Python :: json file to dict python 
Python :: remove first row of dataframe 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =