Question 5
Select the correct answer below.
What is the main purpose of an activation function in a neural network?
A
To calculate the loss of the model.
B
To introduce non-linearity into the network.
C
To initialize the weights of the network.
D
To increase the number of layers.