Open DagonArises opened 2 years ago
please use 'val_accuracy' replace this 'val_acc' such as this code: history['val_acc'] ---> history['val_accuracy'] @xxs980 I moved the issue to this page. It has worked for the author's code. But when I implemented on NLP, 'val_accuracy' raised an error:
124/124 [==============================] - 129s 1s/step - loss: 0.1728 - val_loss: 0.1612
KeyError Traceback (most recent call last)
At the moment val_loss works but strangely val_accuracy returns the error shown above.
val_loss = np.amin(results.history['val_loss'])
return {'loss': val_loss, 'status': STATUS_OK, 'model': model}
The error occurred before model evaluation:
My code is exactly the 'complete example', except added 'notebook_name' in optim.minimize. Thanks in advance.