This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
FashionFlow/graph.py

23 lines
557 B
Python
Raw Permalink Normal View History

"""Tensorflow graphs"""
import matplotlib.pyplot as plt
def plot_training_acc(history):
"""Plot training and validation accuracy"""
acc = history.history["acc"]
val_acc = history.history["val_acc"]
epochs = range(1, len(acc) + 1)
plt.plot(epochs, acc, "bo", label="Training acc")
plt.plot(epochs, val_acc, "b", label="Validation acc")
plt.title("Training and validation accuracy")
plt.xlabel("Epochs")
plt.ylabel("Accuracy")
plt.legend()
plt.show()
2019-01-06 14:38:33 +00:00
def plot_histories(histories, key="binary_crossentropy):