<filename>jobs/training_graph.py
import pickle
import matplotlib.pyplot as plt

with open('training_hist.pks','rb') as f:
    history = pickle.load(f)

loss = history['loss']
val_loss = history['val_loss']
epochs = range(1, len(loss) + 1)
plt.plot(epochs, loss, color='red', label='Training loss')
plt.plot(epochs, val_loss, color='green', label='Validation loss')
plt.title('Training and validation loss')
plt.xlabel('Epochs')
plt.ylabel('Loss')
plt.legend()
plt.show()
<filename>jobs/training_graph.py
import pickle
import matplotlib.pyplot as plt

with open('training_hist.pks','rb') as f:
    history = pickle.load(f)

loss = history['loss']
val_loss = history['val_loss']
epochs = range(1, len(loss) + 1)
plt.plot(epochs, loss, color='red', label='Training loss')
plt.plot(epochs, val_loss, color='green', label='Validation loss')
plt.title('Training and validation loss')
plt.xlabel('Epochs')
plt.ylabel('Loss')
plt.legend()
plt.show()