Examples and Intuitions II
The Θ(1) matrices for AND, NOR(Not x1 and Not x2), and OR are:
We can combine these to get the XNOR logical operator (which gives 1 if x_1 and x_2 are both 0 or both 1).
For the transition between the first and second layer, we'll use a Θ(1) matrix that combines the values for AND and NOR:
For the transition between the second and third layer, we'll use a Θ(2) matrix that uses the value for OR:
Let's write out the values for all our nodes:
And there we have the XNOR operator using a hidden layer with two nodes! The following summarizes the above algorithm:
来源:coursera 斯坦福 吴恩达 机器学习
网友评论