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

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 .

主站蜘蛛池模板: 阳新县| 西吉县| 泊头市| 伊春市| 静宁县| 青岛市| 清苑县| 昌江| 济阳县| 平阴县| 信丰县| 长垣县| 金阳县| 康保县| 老河口市| 富川| 青河县| 星座| 长宁区| 昌江| 上虞市| 惠州市| 田东县| 烟台市| 乐都县| 孙吴县| 铜鼓县| 潼南县| 轮台县| 祁连县| 山西省| 水富县| 肇源县| 颍上县| 大同县| 泽普县| 长治市| 姚安县| 金塔县| 吉首市| 革吉县|