How to return history of validation loss in Keras

后端 未结 10 923
忘掉有多难
忘掉有多难 2020-12-02 16:37

Using Anaconda Python 2.7 Windows 10.

I am training a language model using the Keras exmaple:

print(\'Build model...\')
model = Sequential()
model.ad         


        
10条回答
  •  天涯浪人
    2020-12-02 17:29

    Thanks to Alloush,

    Following parameter must be included in model.fit():

    validation_data = (x_test, y_test)
    

    If it is not defined, val_acc and val_loss will not be exist at output.

提交回复
热议问题