Six original Cambridge-style questions on neural networks, deep learning and back propagation, with worked solutions.
Describe the structure of an artificial neural network.
A network has inputs x1 = 2 and x2 = 1. Hidden node H1 has weights 0.5 (from x1) and −1.5 (from x2) and bias 0.2. Hidden node H2 has weights 0.25 and 0.5 and bias 0. Both hidden nodes use ReLU. The output node has weights 2 (from H1) and 0.6 (from H2), bias 0.1 and no activation function. Calculate the output.
Explain how back propagation of errors is used to train an artificial neural network.
A neuron with no bias outputs y = w × x. The error is E = ½(y − target)2 and its gradient with respect to w is (y − target) × x. For x = 3 the target is 1.5. The weight is 0.2 and the learning rate is 0.05. Carry out one weight update and show that the error has decreased.
Explain why deep learning is used for tasks such as speech recognition and image classification.
An estate agent has the sale prices and floor areas of 60 houses and wants to predict prices of new houses, and to explain each prediction to customers. A developer suggests a deep neural network. Evaluate this suggestion.
Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.