Skip to content

FRM Part I · FRM Exam Part I · Machine-Learning Methods

A neuron has two inputs x1 = 2 and x2 = -1, weights w1 = 0.5 and w2 = 1.5, and bias b = 0.25. The neuron uses a ReLU activation, f(z) = max(0, z). What is its output?

The output is 0. The weighted sum plus bias is 0.5×2 + 1.5×(-1) + 0.25 = -0.25, which is negative, and a ReLU activation returns zero for any negative input.

  1. A0Correct
  2. B-0.25
  3. C0.25
  4. D1.25

Explanation

Compute z = 0.5(2) + 1.5(-1) + 0.25 = 1.0 - 1.5 + 0.25 = -0.25. ReLU returns max(0, -0.25) = 0. The option -0.25 forgets to apply ReLU, and 1.25 results from ignoring the sign of x2 (1.0 + 1.5 - 1.0... or treating it as positive).

Did you get it right without looking?

One question tells you little. A timed set on Machine-Learning Methods shows your real accuracy, how long you take and where you lose marks.

More Machine-Learning Methods questions