Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use the data points below: answer the following: Please use Python! what information do you need ? input X1 X2 1 1 1 0 0
use the data points below:
answer the following:
Please use Python!
what information do you need ?
input X1 X2 1 1 1 0 0 1 - 1 - 1 -1 0 -1 1 desired label 1 1 0 0 0 0 b) Use the perceptron learning rule to train a single neuron on the data points given in problem 3 of Assignment 2: i. Create an np array of the shape of 6x2 that contains the inputs, and another array with the shape of 6xl that contains the labels. ii. Add the bias to the input array to have a 6x3 shape. iii. Create the network with one perceptron using the class NeuralNetwork(), then train it using train(inputs, labels, 100) function. c) Plot the given data points with two different markers for each group. d) Using the trained perceptron weight, plot the classifier line in the same plot in (e). e) Using the trained perceptron, classify the test data samples given in the table below by calling the pred() function. input desired predict label the label XI 2 2 0 -2 X2 0 1 0 0 1 0 1 0 input X1 X2 1 1 1 0 0 1 - 1 - 1 -1 0 -1 1 desired label 1 1 0 0 0 0 b) Use the perceptron learning rule to train a single neuron on the data points given in problem 3 of Assignment 2: i. Create an np array of the shape of 6x2 that contains the inputs, and another array with the shape of 6xl that contains the labels. ii. Add the bias to the input array to have a 6x3 shape. iii. Create the network with one perceptron using the class NeuralNetwork(), then train it using train(inputs, labels, 100) function. c) Plot the given data points with two different markers for each group. d) Using the trained perceptron weight, plot the classifier line in the same plot in (e). e) Using the trained perceptron, classify the test data samples given in the table below by calling the pred() function. input desired predict label the label XI 2 2 0 -2 X2 0 1 0 0 1 0 1 0 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started