使用兩個評估指標在新資料上評估
你已經訓練好模型並檢視過權重是否合理,接下來請在錦標賽的測試集上評估模型,看看它在新資料上的表現如何。
請注意,在這個情境下,Keras 會回傳 3 個數值:第一個是兩個損失函式的總和;接著的 2 個數值,則是你在定義模型時所使用的各自損失函式。
想把你的深度學習功力再往上提升嗎?來看看[Convolutional Neural Networks for Image Processing](https://www.datacamp.com/courses/convolutional-neural-networks-for-image-processing)。
本練習屬於課程
使用 Keras 的進階深度學習
練習說明
- 在
games_tourney_test上評估模型。 - 輸入與輸出請與訓練集相同。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Evaluate the model on new data
print(____(games_tourney_test[['____', '____']],
[games_tourney_test[['____']], games_tourney_test[['____']]], verbose=False))