- Deep Learning with Keras
- Antonio Gulli Sujit Pal
- 190字
- 2021-07-02 23:58:03
Running a simple Keras net and establishing a baseline
So let's see what will happen when we run the code in the following screenshot:

First, the net architecture is dumped, and we can see the different types of layers used, their output shape, how many parameters they need to optimize, and how they are connected. Then, the network is trained on 48,000 samples, and 12,000 are reserved for validation. Once the neural model is built, it is then tested on 10,000 samples. As you can see, Keras is internally using TensorFlow as a backend system for computation. For now, we don't go into the internals on how the training happens, but we can notice that the program runs for 200 iterations, and each time, the accuracy improves. When the training ends, we test our model on the test set and achieve about 92.36% accuracy on training, 92.27% on validation, and 92.22% on the test.
This means that a bit less than one handwritten character out of ten is not correctly recognized. We can certainly do better than that. In the following screenshot, we can see the test accuracy:

- 基于Proteus和Keil的C51程序設計項目教程(第2版):理論、仿真、實踐相融合
- 計算機組裝與系統配置
- INSTANT Wijmo Widgets How-to
- 電腦常見故障現場處理
- 硬件產品經理成長手記(全彩)
- 計算機維修與維護技術速成
- 固態存儲:原理、架構與數據安全
- OpenGL Game Development By Example
- VMware Workstation:No Experience Necessary
- Intel Edison智能硬件開發指南:基于Yocto Project
- Python Machine Learning Blueprints
- FPGA實驗實訓教程
- Istio實戰指南
- 微控制器的應用
- Blender for Video Production Quick Start Guide