- 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.
- 程序員面試筆試寶典(第3版)
- C語言程序設計實踐教程(第2版)
- Node.js Design Patterns
- Beginning C++ Game Programming
- 軟件界面交互設計基礎
- Scratch 3.0少兒編程與邏輯思維訓練
- Apache Karaf Cookbook
- 網絡爬蟲原理與實踐:基于C#語言
- Java Web程序設計任務教程
- Learning Material Design
- Flask Web開發:基于Python的Web應用開發實戰(第2版)
- Clojure High Performance Programming(Second Edition)
- Python編程入門(第3版)
- Visual FoxPro程序設計習題及實驗指導
- 基于JavaScript的WebGIS開發