173k views
1 vote
6. Construct a neural network that computes the XOR function of two inputs. Make sure to specify what sort of units you are using

User GaRRaPeTa
by
5.5k points

1 Answer

7 votes

Answer:

Figure 1 shows the neural network that computes the XOR of two inputs.

Two Input unit: X₁ and X₂

One hidden layer with two hidden units: h₁ and h₂

Two Weights for hidden unit 1 = 20, 20

Bias for hidden unit 1 = -10

Two Weights for hidden unit 2 = -20, -20

Bias for hidden unit 2 = 30

Weights for output layer = 20, 20

Bias for output layer = -30

Activation function = sigmoid (σ)

Output at hidden unit and at the output unit Y is shown in Table attached in Fig 2

6. Construct a neural network that computes the XOR function of two inputs. Make sure-example-1
6. Construct a neural network that computes the XOR function of two inputs. Make sure-example-2
User Derick F
by
7.1k points