λ
home posts study uses projects

Activation Function

Jul 18, 2024

machine-learning

An activation function in a machine learning model is used to add Non-linearity to the output. This is needed, because otherwise, our model will learn to act as a linear least squares model. We usually want our models to solve complex, non-linear problems.

Examples

  • ReLU - f(x)=max(0,x)f(x) = max(0, x)
  • Sigmoid - f(x)=11+exf(x) = \frac{1}{1+e^{-x}}
  • Identity - f(x)=xf(x) = x

References

LλBS

All systems up and running

Commit c0daef5, deployed on Oct 01, 2024.