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

The rectified linear unit function

The rectified linear unit, better known as ReLU, is the most widely used activation function:

The ReLU function has the advantage of being non linear. Thus, backpropagation is easy and can therefore stack multiple hidden layers activated by the ReLU function, where for x<=0, the function f(x) = 0 and for x>0, f(x)=x.

The main advantage of the ReLU function over other activation functions is that it does not activate all the neurons at the same time. This can be observed from the preceding graph of the ReLU function, where we see that if the input is negative it outputs zero and the neuron does not activate. This results in a sparse network, and fast and easy computation.

Derivative graph of ReLU, shows f'(x) = 0 for x<=0 and f'(x) = 1 for x>0

Looking at the preceding gradients graph of ReLU preceding, we can see the negative side of the graph shows a constant zero. Therefore, activations falling in that region will have zero gradients and therefore, weights will not get updated. This leads to inactivity of the nodes/neurons as they will not learn. To overcome this problem, we have Leaky ReLUs, which modify the function as:

This prevents the gradient from becoming zero in the negative side and the weight training continues, but slowly, owing to the low value of .

主站蜘蛛池模板: 泰兴市| 清镇市| 金门县| 门源| 宝丰县| 威信县| 安西县| 特克斯县| 长乐市| 龙州县| 防城港市| 益阳市| 临沂市| 常州市| 左云县| 六枝特区| 广南县| 浏阳市| 神池县| 射洪县| 富阳市| 富民县| 云和县| 若羌县| 济阳县| 舒城县| 清水县| 庆元县| 宣恩县| 英吉沙县| 商河县| 合江县| 武强县| 西华县| 咸阳市| 东光县| 临武县| 锦屏县| 墨玉县| 武安市| 江城|