tinman (3) [Avatar] Offline
#1
In the mentioned code parts you have to make corrections if you are running the newest versions of keras/tensorflow.

Was:

acc = history.history['acc']
val_acc = history.history['val_acc']


Replace by:

acc = history.history['binary_accuracy']
val_acc = history.history['val_binary_accuracy']


You can find the correct dict keys easily if you print history. history.