- Practical Convolutional Neural Networks
- Mohit Sewak Md. Rezaul Karim Pradeep Pujari
- 106字
- 2021-06-24 18:58:52
Testing
After you're satisfied with the training output and accuracy, you can run the network on the test dataset to measure its performance!
Keep in mind to perform this only after you've completed the training and are satisfied with the results.
A good result will obtain an accuracy higher than 95%. Some simple models have been known to achieve even up to 99.7% accuracy! We can test the model, as shown here:
# Comparing the labels predicted by our model with the actual labels score = model.evaluate(X_test, y_test, batch_size=32, verbose=1,sample_weight=None) # Printing the result print('Test score:', score[0]) print('Test accuracy:', score[1])
推薦閱讀
- 數據庫原理及應用教程(第4版)(微課版)
- 算法競賽入門經典:習題與解答
- 深度剖析Hadoop HDFS
- Microsoft Power BI數據可視化與數據分析
- Oracle PL/SQL實例精解(原書第5版)
- 圖數據實戰:用圖思維和圖技術解決復雜問題
- Spark分布式處理實戰
- The Natural Language Processing Workshop
- 云計算寶典:技術與實踐
- Access 2016數據庫應用基礎
- 數據中臺實戰:手把手教你搭建數據中臺
- NoSQL數據庫原理(第2版·微課版)
- 數據挖掘與數據化運營實戰:思路、方法、技巧與應用
- Hadoop大數據技術開發實戰
- 高效使用Redis:一書學透數據存儲與高可用集群