I was trying to plot train and test learning curve in keras, however, the following code produces KeyError: \'val_acc error.
KeyError: \'val_acc error
The official document
I have changed acc to accuracy and my problem solved. Tensorflow 2+
e.g.
accuracy = history_dict['accuracy'] val_accuracy = history_dict['val_acccuracy']