Skip to content

Instantly share code, notes, and snippets.

View whyboris's full-sized avatar
😀
Working on Video Hub App!

Boris whyboris

😀
Working on Video Hub App!
View GitHub Profile
@whyboris
whyboris / matplotlib.py
Last active May 12, 2021 02:47
Keras Loss & Accuracy Plot Helper Function
import matplotlib.pyplot as plt
# Plot model history more easily
# when plotting, smooth out the points by some factor (0.5 = rough, 0.99 = smooth)
# method taken from `Deep Learning with Python` by François Chollet
def smooth_curve(points, factor=0.75):
smoothed_points = []
for point in points: