Question: Part B: Nonlinear Decision Boundary ( 2 5 points ) The XOR function ( Exclusive OR ) is a digital logic operation on

Part B: Nonlinear Decision Boundary (25 points)
The XOR function ("Exclusive OR") is a digital logic operation on two binary inputs, x1 and x2. The truth
table and the scatter plot for the four possible combinations of (x1,x2) are shown below.
As we discussed in class, a single-layer Perceptron is insufficient to classify the XOR data points because
it can only create linear decision boundaries. To address this, consider a two-layer MLP with the
following activation functions:
For hidden layer, f[1](z)= sigmoid; for output layer, f[2](z)= sigmoid.
Given the specified weights and biases for this MLP, please complete the following tasks.
(a) Forward Propagation: Compute the outputs of the two neurons in the hidden layer (denoted as
a1[1] and a2[1]) and the final output of the MLP (denoted as a[2] or hat(y)), for all four input
combinations of (x1,x2). After completing the calculations, fill in the three tables provided
below with your results. \table[[Neuron 1,Neuron 2,Output Neuron],[x_(1),x_(2),a_(1)^([1]),x_(1),x_(2),a_(2)^([1]),a_(1)^([1]),a_(2)^([1]),hat(y)],[0,0,,0,0,,,,],[0,1,,0,1,,,,],[1,0,,1,0,,,,],[1,1,,1,1,,,,]]Problem 2: Deriving the Decision Boundaries (40 points)
The decision boundary in a neural network refers to the surface that separates different classes in the
dataset. A neural network learns this boundary by adjusting its weights and biases during training.
Part A: Linear Decision Boundary (15 points)
Consider a single-layer Perceptron with two input features that is used to classify the data points in the
graph below into two classes (red stars and blue circles).
Given the weights w1=1,w2=1 and bias b=-2.75, derive the equation for the decision
boundary.
Plot the decision boundary on the graph and show the region where the network would classify
the input as class 1 and class 0.
Part B: Nonlinear Decision Boundary ( 2 5 points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!