Description
2. Consider the following training set:
(๐๐, ๐๐) y
(0,0) 0
(0,1) 1
(1,1) 1
With the bias value of 1, the initial weight function of ๐ = {๐#, ๐$, ๐%} = {0.2, -0.4, 0.1} and learning rate of ๐ = 0.2.
Consider the activation function of the perceptron as the step function ๐ = . 1 ๐๐ ฮฃ > 0
0 ๐๐กโ๐๐๐ค๐๐ ๐
a) Can the perceptron learn a perfect solution for this data set?
b) Draw the perceptron graph and calculate the accuracy of the perceptron on the training data before training?
c) Using the perceptron learning rule and the learning rate of ๐ = 0.2. Train the perceptron for one epoch. What are the weights after the training?
d) What is the accuracy of the perceptron on the training data after training for one epoch? Did the accuracy improve?
3. Consider the two levels deep network illustrated below. It is composed of three perceptron.
The two perceptron of the first level implement the AND and OR function, respectively.
Determine the weights ฮธ11, ฮธ21 and bias ฮธ01 such that the network implements the XOR function. The initial weights are set to zero, i.e., ฮธ01 = ฮธ11 = ฮธ21 = 0, and the learning rate ๐ (eta) is set to 0.1. Notes:
โข The input function for the perceptron on level 2 is the weighted sum (ฮฃ) of its input.
โข The activation function f for the perceptron on level 2 is a step function:
โข Assume that the weights for the perceptron of the first level are given.
Reviews
There are no reviews yet.