summary of activation function in deep learning

1. Introduction

The neaural network is linear without non-linear activation function, we add non-linear transformation for complex task, such as language translation or image classification. However, there are lot of activation functions, what's the diffetence between them and what are the characteristics of corresponding activation function? To analyze their features, we write this document.

2. features of different activation function

2.1 setp function

mathematically

\begin{array}{l}f(x)=1, \text { if } \mathrm{x}>=0 \\f(x)=0, \text { if } \mathrm{x}<0\end{array}

diagram
image
description:

2.2 Identity

mathematically

f(x)=x

diagram
image

2.3 Relu

mathematically
f(x)=max(0,x)

diagram
image

2.4 Sigmoid

mathematically
f(x)=11+ex
diagram
image

2.5 tanh

mathematically
f(x)=(exex)(ex+ex)

diagram
image

2.6 Leaky ReLU

mathematically
f(x)=ax,x<0f(x)=x, otherwise 
diagram
image

2.7 PReLU (Parameteric Rectified Linear Unit)

mathematically
f(yi)={yi, if yi>0aiyi, if yi0
diagram
image

2.8 RReLU (Randomized Leaky Rectified Linear Unit)

mathematically
yji=xji if xji0yji=ajixji if xji<0whereαjiU(l,u),l<u and l,u[0,1)
U(l,u) means uniform distribution.

diagram
image

Reference

1 [what, why and which??activation functions]( https://medium.com/@snaily16/what-why-and-which-activation-functions-b2bf748c0441#:~:text=4.1 Linear or Identity Activation ,signal%20proportional%20to%20the%20input. "what, why and which??activation functions")
2 ReLU paper
3 PReLU paper
4 RReLU paper

posted @ 2023-11-16 04:44  Daze_Lu  阅读(23)  评论(0)    收藏  举报