Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write code as a matlab code is mandatory. Create a set of 2D data ( d=2, features: x=(x_1,x_2) ) Randomly create a set of 20

write code as a matlab code is mandatory.

Create a set of 2D data ( d=2, features: x=(x_1,x_2) ) Randomly create a set of 20 data points (N=20) such that for each point x=(x_1,x_2), the coordinates x_1,x_2 be integers. x_1,x_2 are to be limited to the [-30,+30] range and uncorrelated. Choose the line x_1+2x_2 - 1.1 = 0 as your target function, where the points on one side of the line map to y=+1 (f=x_1+2x_2-1.5>0) and the other points map to y=-1 (f=x_1+2x_2-1.5<0). Now, you have a set of 20 data points (x,y) as your separable data points. Plot the points on the 2D plane labeling them with + or - or Red and Blue. Implement and run the simple perceptron algorithm. You must write the perceptron code from scratch as opposed to using the code in software packages. Make sure to include declarations next to code lines for ease of readability. How many iterations does it take to arrive at the solution boundary (estimated target function)? Plot 4 iterations including the final one showing the boundary line at each iteration. Draw function f line on the last plot and explain why they are different. Is there any solution that could be better than others?

write code as a matlab code is mandatory.

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

What are the APPROACHES TO HRM?

Answered: 1 week ago

Question

Describe the appropriate use of supplementary parts of a letter.

Answered: 1 week ago