- Neural Networks with Keras Cookbook
- V Kishore Ayyadevara
- 213字
- 2021-07-02 12:46:26
Getting ready
In this section, we will follow the model-building process in exactly the same way as we did in the previous section.
However, we will adopt a small change to our strategy:
- We will invert the background color, and also the foreground color. Essentially, the background will be colored white in this scenario, and the label will be written in black.
The intuition for this change impacting the model accuracy is as follows.
The pixels in the corner of images do not contribute toward predicting the label of an image. Given that a black pixel (original scenario) has a pixel value of zero, it is automatically taken care of, as when this input is multiplied by any weight value, the output is zero. This will result in the network learning that any change in the weight value connecting this corner pixel to a hidden layer will not have an impact on changing the loss value.
However, if we have a white pixel in the corner (where we already know that the corner pixels do not contribute toward predicting the label of an image), it will contribute toward certain hidden unit values, and thus the weights need to be fine-tuned until the impact of the corner pixels on the predicted label is minimal.
- 深入核心的敏捷開發:ThoughtWorks五大關鍵實踐
- 移動UI設計(微課版)
- 控糖控脂健康餐
- INSTANT FreeMarker Starter
- 匯編語言程序設計(第2版)
- Java程序設計
- Hands-On Functional Programming with TypeScript
- Learning OpenStack Networking(Neutron)(Second Edition)
- Mastering Akka
- Modern C++ Programming Cookbook
- jQuery for Designers Beginner's Guide Second Edition
- 大數據時代的企業升級之道(全3冊)
- Python第三方庫開發應用實戰
- Node.js實戰:分布式系統中的后端服務開發
- Python 3.6從入門到精通(視頻教學版)