Randomly create a set of 20 data points (N=20) such that for each point x=(x_1.x_2), the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 the function fline on the last plot and explain why they are different. Is there any solution that could be better than others? Explain. 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 the function fline on the last plot and explain why they are different. Is there any solution that could be better than others? Explain.
Expert Answer:
Answer rating: 100% (QA)
To randomly create a set of 20 data points and implement the perceptron algorithm you can follow the... View the full answer
Related Book For
Introduction To Probability And Statistics
ISBN: 9781133103752
14th Edition
Authors: William Mendenhall, Robert Beaver, Barbara Beaver
Posted Date:
Students also viewed these mathematics questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
Prepare journal entries for each of the following transactions: 1. Purchase equipment in exchange for cash of $22,400. 2. Provide services to customers and receive cash of $5,100. 3. Pay the current...
-
Bob, a sales representative for Central Computer Co., occasionally uses the Internet to obtain information about his customers and to look for new sales leads. While visiting the Web site of...
-
The Wolfenden Report (1957) The Criminal Code of Canada carries specific restrictions on our conduct in both public and private domains. Some of these restrictions keep us safe, some protect our...
-
Calculate \(\overline{\bar{x}}\) and \(\bar{R}\) of the data of part (c) of Exercise 15.1, and use these values to construct the central lines and three-sigma control limits for new \(\bar{x}\) and...
-
Sue is a customer account representative for ABC Company. She recently acquired several new accounts when a previous representative, Dan, took an early retirement. Sue reviewed each of Dans accounts...
-
Consider flow between two large parallel plates. Fluid is placed between two plates separated by a distance of 8. The upper plate at temperature T2 moves at velocity U while the lower plate at...
-
Lopez Company reported the following current-year data for its only product. The company uses a periodic inventory system, and its ending inventory consists of 150 units50 from each of the last three...
-
Under which strategy would you offer products or services to a wide range of customers at the lowest price available on the market? a. Focus - Best Value b. Cost Leadership - Low Cost c. Focus - Low...
-
If you were going to implement the FIFO Queue ADT as a circular linked list, with the external pointer accessing the rear node of the queue, which member functions would you need to change?
-
True or False? A trailer node is a placeholder node at the end of a list, which is used to simplify list processing.
-
The queue is implemented as a class containing an array of items, a data member indicating the index of the last item put on the queue (rear), a data member indicating the index of the location...
-
An inspector measured the fill volume of a simple random sample of 100 cans of juice that were labeled as containing 12 ounces. The sample had mean volume 11.98 ounces and standard deviation 0.19...
-
Is a count-controlled loop going from 1 through 5. At each iteration, the loop counter is either printed or put on a stack depending on the result of the Boolean function RanFun(). (The behavior of...
-
The average market yield is 10% and the risk-free rate of return is 7%. The investor has the opportunity to invest in five instruments: A shares - having a beta coefficient of 1.12; shares B - with a...
-
What are some of the possible sources of information about a company that could be used for determining the companys competitive stance?
-
Two cold tablets are unintentionally placed in a box containing two aspirin tablets. The four tablets are identical in appearance. One tablet is selected at random from the box and is swallowed by...
-
Polychlorinated biphenyls (PCBs) have been found to be dangerously high in some game birds found along the marshlands of the southeastern coast of the United States. The Federal Drug Administration...
-
An analytical chemist wanted to use electrolysis to determine the number of moles of cupric ions in a given volume of solution. The solution was partitioned into n = 30 portions of .2 milliliter...
-
On Cartesian axes, the x-component of a vector is generally associated with a (a) cosine, (b) sine, (c) tangent, (d) none of the foregoing.
-
What process do you follow to make decisions for these different circumstances, and are you satisfied with the results?
-
A football is thrown on a long pass. Compared to the balls initial horizontal velocity component, the velocity at the highest point is (a) greater, (b) less, (c) the same.
Study smarter with the SolutionInn App