![Intelligent Projects Using Python](https://wfqqreader-1252317822.image.myqcloud.com/cover/975/36698975/b_36698975.jpg)
上QQ阅读APP看书,第一时间看更新
Sigmoid activation units
The output of the sigmoid activation unit, y, as a function of its total input, x, is expressed as follows:
![](https://epubservercos.yuewen.com/759B01/19470382808830006/epubprivate/OEBPS/Images/e72ceed8-eaaa-4d3e-bc39-256e36d389e2.png?sign=1739611204-YFas3Aw7heGzIbweZIBG2tuu1RkkelLA-0-a5a23041f03bfd871028d9a5ec72d051)
Since the sigmoid activation unit response is a nonlinear function, as shown in the following graph, it is used to introduce nonlinearity in the neural network:
![](https://epubservercos.yuewen.com/759B01/19470382808830006/epubprivate/OEBPS/Images/f54ce333-0cdb-400f-b9d1-22d60475291f.png?sign=1739611204-Hr9qD5iH1NiPuukLVCh7n59BegXeWh7F-0-6d3c6fb1683ebcb09ca5b09dca9071a6)
Figure 1.6: Sigmoid activation function
Any complex process in nature is generally nonlinear in its input-output relation, and hence, we need nonlinear activation functions to model them through neural networks. The output probability of a neural network for a two-class classification is generally given by the output of a sigmoid neural unit, since it outputs values from zero to one. The output probability can be represented as follows:
![](https://epubservercos.yuewen.com/759B01/19470382808830006/epubprivate/OEBPS/Images/4e502901-d686-46cf-ba1c-e0b11d2c2707.png?sign=1739611204-syWsKoOO5BmzGa1WDoN0IqnVKV3wN5ov-0-f3302c44fbc2d9236e89218558f03b4e)
Here, x represents the total input to the sigmoid unit in the output layer.