A single artificial neuron has weights w1 = 0.5, w2 = −0.4, w3 = 0.3 and bias b = −0.6. It uses a step activation: output 1 if the total is > 0, otherwise 0.
(a) Calculate the output for inputs (1, 0, 1). [3]
(b) State the output for inputs (0, 1, 1). [1]
- (a) Weighted sum = 1(0.5) + 0(−0.4) + 1(0.3) = 0.8 (allow 0.5 + 0.3 − 0.6 = 0.2 written in one line for this mark and the next)(1)
- (a) Adds the bias: 0.8 − 0.6 = 0.2(1)
- (a) 0.2 > 0, so the output is 1 (follow-through from their total)(1)
- (b) 0 (working not required; total = −0.4 + 0.3 − 0.6 = −0.7)(1)
- Answer: (a) 1 (b) 0
- Examiner tip: Do not forget to add the bias before applying the activation function.