What is Activation function?
The function applied in each neuron of a neural network to the weighted sum of its inputs (plus a bias). Using a nonlinear function lets a network with stacked layers represent complex relationships. ReLU is common in hidden layers, while output layers often use the sigmoid function for two-class classification, the softmax function for multi-class classification and the identity function (no change) for regression.
Japanese name: 活性化関数
Activation function appears in 4 practice questions across 2 topics, including Machine Learning Basics, AI Hardware & Software Stack.
Field: Machine Learning Basics
Why a nonlinear function is needed
Without an activation function (that is, with the identity function), each layer is only a matrix multiplication plus a vector addition. Any number of stacked linear transformations can be combined into a single linear transformation, so however deep the network, it can only represent a linear function of its inputs. Inserting nonlinear activation functions lets it represent relationships that cannot be separated by a single straight line, such as XOR, and far more complex ones.
FAQ
Is the softmax function an activation function?
It is treated as one of the activation functions used in the output layer for multi-class classification. It differs from the others in that, instead of acting on each neuron separately, it uses all the values of the output layer to turn them into probabilities that sum to 1.
Is it related to "activation" in semiconductor manufacturing?
No. The activation function of a neural network takes its name from the way it imitates a nerve cell becoming excited (firing). Activation in semiconductor manufacturing refers to heat-treating implanted dopants so that they occupy lattice sites in the crystal and become able to supply carriers.