Laboratory Task 2#
Genheylou Felisilda - DS4A
Instruction: Perform a single forward pass and compute for the error.
\( x = \begin{bmatrix} 1 \\ 0 \\ 1 \\ \end{bmatrix} \)
\( y = \begin{bmatrix} 1 \\ \end{bmatrix} \)
\( f(z) = max(0, Z_n) \)
$ \text{hidden unit weights} =
$
$ \text{output unit weights} =
$
$ \theta =
$
Hidden Layer Compute each hidden unit pre-activation: Apply activation \((a_i = f(z_i))\): So the hidden activations are: Output Layer Weights and bias: Pre-activation: Activation: Error Calculation Target: Error: Final Results:Solution#
Conclusion#
In this solution, we used a simple neural network to process an input and make a prediction. We passed the input through a hidden layer using ReLU as the activation function, which turned negative values into zero. After that, the result went through the output layer to get the final prediction, which was 0.08. We then compared it to the actual target value of 1.0 and calculated the error as 0.4232. This shows that the network made a prediction, but it still needs improvement. To reduce the error, we would need to continue training the network using backpropagation and update the weights.