Fill This Form To Receive Instant Help
Homework answers / question archive / 1) Use Python to train a simple perceptron model to classify the patterns on a NAND function
1) Use Python to train a simple perceptron model to classify the patterns on a NAND function. To begin training, select your initial weights randomly between 2 and -2.
X1 X2 Target -1 -1 1 -1 1 1
Extra Points- 2% : Make an animation movie to show the movement of your classification line from beginning to final position.
2. Use Python to train a simple perceptron model to classify a set of randomly generated patterns. Generate randomly two set of data set in two dimensions xl and x2. One data set has -0.5 <= xl <= 0.5 and -0.5 <= x2 <= 0.5 with target of -1, and the second data set is between two circles with radius of 3 and 4with the center of the coordinate. To begin training, select your initial weights randomly between 2 and -2.