FRM Part I · FRM Exam Part I · Machine Learning and Prediction
A single neuron receives inputs x1 = 2 and x2 = -1 with weights w1 = 0.5 and w2 = 1.5 and bias b = 0.5. It uses a ReLU activation, f(z) = max(0, z). What is the neuron's output?
The output is 0. The weighted sum is 0.5×2 + 1.5×(-1) + 0.5 = 0, and ReLU returns max(0, 0) = 0. A result of -0.5 would ignore the activation function, and 1.0 would ignore the negative second input.
- A0Correct
- B-0.5
- C1.0
- D0.0 only if the bias is removed, otherwise 1.5
Explanation
z = 0.5(2) + 1.5(-1) + 0.5 = 1 - 1.5 + 0.5 = 0. ReLU of 0 equals 0. Dropping the bias would give z = -0.5 and still output 0, so the final option is wrong. A negative output of -0.5 would ignore the ReLU, and 1.0 omits the second input's contribution.
Did you get it right without looking?
One question tells you little. A timed set on Machine Learning and Prediction shows your real accuracy, how long you take and where you lose marks.
More Machine Learning and Prediction questions
- A K-means model is fitted to stocks for K = 1 to 5, producing total within-cluster sum of squares of 500, 220, 100, 90 and 85 respectively. …
- A random forest has 200 trees, each trained on a bootstrap sample of n = 1,000 observations. Approximately what fraction of observations is …
- A risk analyst groups 500 corporate borrowers into segments using only their financial ratios, with no default labels available. Which descr…
- An analyst at a risk consultancy wants to group 400 corporate borrowers into segments based on leverage, interest coverage and asset volatil…
- A fraud model is evaluated on 10,000 transactions, of which 100 are fraudulent. A naive model that labels every transaction as non-fraud is …
- A risk analyst fits a very flexible model to predict loan defaults. The model achieves almost perfect accuracy on the training data but perf…