- Reinforcement Learning with TensorFlow
- Sayon Dutta
- 267字
- 2021-08-27 18:51:51
The sigmoid function
Sigmoid is a smooth and continuously differentiable function. It results in nonlinear output. The sigmoid function is represented here:

Please, look at the observations in the following graph of the sigmoid function. The function ranges from 0 to 1. Observing the curve of the function, we see that the gradient is very high when x values between -3 and 3, but becomes flat beyond that. Thus, we can say that small changes in x near these points will bring large changes in the value of the sigmoid function. Therefore, the function goals in pushing the values of the sigmoid function towards the extremes.
Therefore, it's being used in classification problems:

Looking at the gradient of the following sigmoid function, we observe a smooth curve dependent on x. Since the gradient curve is continuous, it's easy to backpropagate the error and update the parameters, that is, and
:

Sigmoids are widely used but its disadvantage is that the function goes flat beyond +3 and -3. Thus, whenever the function falls in that region, the gradients tends to approach zero and the learning of our neural network comes to a halt.
Since the sigmoid function outputs values from 0 to 1, that is, all positive, it's non symmetrical around the origin and all output signals are positive, that is, of the same sign. To tackle this, the sigmoid function has been scaled to the tanh function, which we will study next. Moreover, since the gradient results in a very small value, it's susceptible to the vanishing gradient problem (which we will discuss later in this chapter).
- 大數(shù)據(jù)導論:思維、技術與應用
- 電力自動化實用技術問答
- 我的J2EE成功之路
- 商戰(zhàn)數(shù)據(jù)挖掘:你需要了解的數(shù)據(jù)科學與分析思維
- UTM(統(tǒng)一威脅管理)技術概論
- 機器人創(chuàng)新實訓教程
- AWS Administration Cookbook
- 網(wǎng)絡化分布式系統(tǒng)預測控制
- 中國戰(zhàn)略性新興產(chǎn)業(yè)研究與發(fā)展·工業(yè)機器人
- 大數(shù)據(jù)驅動的機械裝備智能運維理論及應用
- Visual FoxPro數(shù)據(jù)庫基礎及應用
- 空間站多臂機器人運動控制研究
- 運動控制系統(tǒng)
- Creating ELearning Games with Unity
- 從機器學習到無人駕駛