jgs Instructions § Use the code from https://github.com/javiergs/Medium/blob/main/NeuralNetwork/BasicNeuralNetwork.java § Write a paper addressing the following questions
jgs Questions 1. Can you reuse that code and train a neural network for identifying AND operator? What is the Error after 10,000 iterations of training? 2. Can you reuse that code and train a neural network for identifying OR operator? What is the Error after 10,000 iterations of training? 3. Compare with the provided error for XOR. Explain the difference or similarities
jgs Questions For the error calculation. You will notice this code meanSquareError += Math.pow (err, 2)/2; double err1 = meanSquareError / (network.nodesOutputLayer+network.nodesHiddenLayer-1); 4. Is there a problem there? 5. Could you identify and explain or fix?
jgs Questions 6. What is the size of the array arrayBias? Is that, OK? Should it or Could it Be smaller? If so, can you fix the code? It is worthy to make it smaller.
jgs Questions 8. Express the source code from lines 64 to 75 as an equation using the names on the picture 9. Express the source code from lines 77 to 88 as equations using the names on the picture 10. Express the source code from lines 90 to 93 as equations using the names on the picture
jgs Extra If you are familiar with derivatives, § Can you explain the equations from the previous question (where they come from) Hints: o derivative of sigmoid function; o partial derivative of error function with respect to Wi o Derivative of a constant o Derivative of (Ax + Bx + Cx + …)
Ph.D. [email protected] Spring 2022 Copyright. These slides can only be used as study material for the class CSE205 at Arizona State University. They cannot be distributed or used for another purpose.