Here's my code to plot my model accuracies/losses.
import matplotlib.pyplot as plt
train_acc, = np.array(hist.history.get('acc'))
val_acc, = np.array(hist.history.get('val_acc'))
plt.figure()
epochs=np.arange(len(train_acc))
plt_train_acc = plt.plot(epochs,train_acc,'r',label='Train_Acc')
plt_val_acc = plt.plot(epochs,val_acc,'b',label='Val_Acc')
plt.title('Acc Trends')
plt.ylabel('Acc')
plt.xlabel('Epochs')
plt.legend( [plt_train_acc,plt_val_acc],
[train_acc,val_acc], )
plt.savefig("trendsPlot.jpg")
plt.show()
But I get "TypeError: 'bool' object is not callable" error for the line plt.legend