Question
This question tests your understanding of each step in the training process of ANN. Well use a simple example of training a neural network to
This question tests your understanding of each step in the training process of ANN.
Well use a simple example of training a neural network to function as an Exclusive OR (XOR). The truth table of an XOR is given below.
i1 | i2 | Output |
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
Lets use a simple ANN to represent the XOR function. The ANN has three layers:
Input layer with two inputs neurons
One hidden layer with three neurons
Output layer with a single neuron
The initial weights are assigned as shown in the figure. To train our neural network, we need to find the weights that minimize prediction error. To answer this question, start with forward propagation, and then back propagation. Use the sigmoid function S(x) as an activation function. Show your steps for two rounds of output predictions and calculate the error in each case.
Marking Criteria
5 Marks for executing forward propagation correctly
5 Marks for executing back propagation correctly
5 Marks for adjusting the weights correctly
5 Marks for using the activation function correctly
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started