Yes, you are correct that the activation function performs the final value transformation, but there seems to be a slight misunderstanding in your example regarding the output of the sigmoid function.
For a binary classification problem using a sigmoid activation function, the weighted sum of the inputs and biases (often referred to as the "logits") is transformed by the sigmoid function to produce the final output, which is a probability value between 0 and 1. The sigmoid function, specifically, is defined as:
[ \sigma(x) = \frac{1}{1 + e^{-x}} ]
So, if the weighted sum of the inputs and biases is 0.3, and you feed this value into the sigmoid activation function, you would calculate the output as:
[ \sigma(0.3) = \frac{1}{1 + e^{-0.3}} \approx 0.5744 ]
This means that after applying the sigmoid function to the weighted sum of 0.3, you do not get a value of 0. Instead, you get a value of approximately 0.5744. This value represents the probability (as predicted by the neural network) that the given inputs belong to the positive class (usually denoted as "1") in a binary classification problem.
The sigmoid function is crucial for binary classification because it squashes the output of the linear combination of inputs and biases into a range (0, 1), making it interpretable as a probability. The network then typically classifies an input as belonging to the positive class if this probability is greater than a certain threshold (commonly 0.5), and to the negative class (usually denoted as "0") otherwise.
So, in summary, the activation function like sigmoid is indeed responsible for performing the final value transformation, converting the logits into a probability value that can be used for classification decisions.