官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 饶河县| 逊克县| 都匀市| 筠连县| 武胜县| 青田县| 阿拉善左旗| 通许县| 新乡县| 社旗县| 无锡市| 平邑县| 兴化市| 犍为县| 乌拉特中旗| 外汇| 淅川县| 姚安县| 临海市| 新密市| 琼结县| 延安市| 西青区| 瑞安市| 邵阳市| 孝昌县| 溆浦县| 西平县| 恩施市| 永修县| 通辽市| 涞源县| 东乡县| 平度市| 烟台市| 枞阳县| 泰和县| 北安市| 陵水| 聂拉木县| 牟定县|