Q93.Marks: +2.0UGC NET Paper 2: Computer Science 7th Dec 2023 Shift 2
In a feed forward neural network with the following specifications:
Input layer has 4 neurons, hidden layer has 3 neurons and output layer has 2 neurons using the sigmoid activation function for given input values [0.5, 0.8, 0.2, 0.6] as well as the initial weights for the connections.
W5: [0.5, 0.2, 0.4] Hidden layer to output layer weights
What is the output of the output layer when the given input values are passed through neural network? Round the answer to two decimal places :
1.[0.62, 0.68]✓ Correct
2.[0.72, 0.78]
3.[0.82, 0.88]
4.[0.92, 0.98]
Solution
The correct answer is [0.62, 0.68]
Key Points
To compute the output of the neural network, we need to follow these steps:
Compute the input to the hidden layer by taking the dot product of the input values and the weights (adding a bias term, which is 1, for each neuron in the hidden layer).
Apply the sigmoid activation function to each element of the hidden layer.
Compute the input to the output layer by taking the dot product of the hidden layer outputs and the weights (adding a bias term, which is 1, for each neuron in the output layer).
Apply the sigmoid activation function to each element of the output layer.