- 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).
- Verilog HDL數字系統設計入門與應用實例
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- Matplotlib 3.0 Cookbook
- 數據庫原理與應用技術
- 計算機網絡技術基礎
- Kubernetes for Serverless Applications
- Citrix? XenDesktop? 7 Cookbook
- 簡明學中文版Photoshop
- Redash v5 Quick Start Guide
- 常用傳感器技術及應用(第2版)
- 算法設計與分析
- Mastering SQL Server 2014 Data Mining
- OSGi原理與最佳實踐
- Azure Serverless Computing Cookbook
- 傳感器技術及實訓(第2版)