Answered step by step
Verified Expert Solution
Link Copied!

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:
image text in transcribed
answer the following:
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

Define dashboard.

Answered: 1 week ago

Question

What did they do? What did they say?

Answered: 1 week ago