Activation Function

Weighted Sum

$$ z=x^{T}w$$

Heaviside Step Function

$$ heaviside(z) = \begin{cases} 0 & \text{if $z \lt 0$} \\ 1 & \text{if $z \ge 0$} \end{cases}$$

Sign Function

$$ sgn(z) = \begin{cases} -1 & \text{if $z < 0$}\\ 0 & \text{if $z = 0$} \\ +1 & \text{if $z > 0$} \end{cases}$$

Logistic Function, Sigmoid Function

$$\sigma(z) = \frac{1}{1+exp(-z)}$$

Hyperbolic Tangent Function

$$tanh(z) = 2\sigma(2z)-1$$

Rectified Linear Unit Function

$$ ReLU(z) = max(0, z)$$

Reference