Plotting learning curve in keras gives KeyError: 'val_acc'

前端 未结 8 2047
情话喂你
情话喂你 2020-12-09 09:54

I was trying to plot train and test learning curve in keras, however, the following code produces KeyError: \'val_acc error.

The official document

8条回答
  •  隐瞒了意图╮
    2020-12-09 10:51

    I have changed acc to accuracy and my problem solved. Tensorflow 2+

    e.g.

    accuracy = history_dict['accuracy']
    val_accuracy = history_dict['val_acccuracy']
    

提交回复
热议问题