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

Rectified linear unit (ReLU)

The output of a ReLU is linear when the total input to the neuron is greater than zero, and the output is zero when the total input to the neuron is negative. This simple activation function provides nonlinearity to a neural network, and, at the same time, it provides a constant gradient of one with respect to the total input. This constant gradient helps to keep the neural network from developing saturating or vanishing gradient problems, as seen in activation functions, such as sigmoid and tanh activation units. The ReLU function output (as shown in Figure 1.8) can be expressed as follows:

The ReLU activation function can be plotted as follows:

Figure 1.8: ReLU activation function

One of the constraints for ReLU is its zero gradients for negative values of input. This may slow down the training, especially at the initial phase. Leaky ReLU activation functions (as shown in Figure 1.9) can be useful in this scenario, where the output and gradients are nonzero, even for negative values of the input. A leaky ReLU output function can be expressed as follows:

       

The  parameter is to be provided for leaky ReLU activation functions, whereas for a parametric ReLU,  is a parameter that the neural network will learn through training. The following graph shows the output of the leaky ReLU activation function:

Figure 1.9: Leaky ReLU activation function
主站蜘蛛池模板: 三都| 嫩江县| 侯马市| 平定县| 宁安市| 元江| 尼勒克县| 安阳市| 乌恰县| 阿坝县| 鸡东县| 三门峡市| 定南县| 来凤县| 海门市| 普洱| 双桥区| 伽师县| 金山区| 长顺县| 马边| 鄂伦春自治旗| 四会市| 石阡县| 甘泉县| 安新县| 永嘉县| 宁陵县| 宝丰县| 德昌县| 旬阳县| 新营市| 拜城县| 思南县| 兴业县| 明光市| 舒兰市| 广州市| 罗山县| 调兵山市| 廊坊市|