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...
-
Prior to liquidating their partnership, Dickens and Thomas had capital accounts of $55,000 and $45,000, respectively. Prior to liquidation, the partnership had no cash assets other than what was...
-
Solve the systems of equations by determinants. As indicated, use the systems from Exercises. Exercise 36 Data from Exercises 36 Solve the given systems of equations using the inverse of the...
-
Calculate the volatility and the current price of oil futures implied by the call 1600 August and the call 1700 August of Figure 19.8 by using the Black-Scholes formula with \(T=.25\). OIL CRUDE OIL...
-
Pumping a hydrochloric acid solution (Fig. 7A.2), a dilute HC1 solution of constant density and viscosity ( p = 62.4lb m /ft 3 , = 1 cp) is to be pumped from tank I to tank 2 with no overall change...
-
Provide in detail the process for contesting OSHA citations.
-
Jackie Wengler, owner of Wengler Home Decorating Service, has requested that you prepare from the following balances (a) An income statement for June 201X, (b) A statement of owner?s equity for June,...
-
Communication Barriers Recently you attended a seminar on improving writing skills. The speaker arrived late and seemed flustered and disorganized. At first the room was quite comfortable. However,...
-
Silver Company makes a product that is very popular as a Mother s Day gift. Thus, peak sales occur in May of each year, as shown in the company s sales budget for the second quarter given below:...
-
Camp Rainbow offers overnight summer camp programs for children ages 1 0 to 1 4 every summer during June and July. Each camp session is one week and can accommodate up to 2 0 0 children. The camp is...
-
Morning Dove Company manufactures one model of birdbath, which is very popular. Morning Dove sells all units it produces each month. The relevant range is 0 to 1 , 8 0 0 units, and monthly production...
-
The Digby's balance sheet has $ 130, 7 5 0 , 0 0 0 in equity. Further, the company is expecting $ 3 , 500, 0 0 0 in net income next year. Assuming no dividends are paid and no stock is issued, what...
-
On January 1 , Park Corporation and Strand Corporation had condensed balance sheets as follows: Items Park Strand Current assets $ 7 0 , 0 0 0 $ 2 0 , 0 0 0 Noncurrent assets 9 0 , 0 0 0 4 0 , 0 0 0...
-
find the least squares regression line treating weight as the explanatory variable and miles per gallon as the response variable Question 2, 4.2.24 Part 1 of 4 Car Weight and MPG example Weight...
-
To balance the chemical equation SiH3 + O2 SiO2 + HO, you could introduce coefficients a, b, c, d and write aSiH3 + bO2 cSiO + dHO then write linear equations for each element. The equation for Si...
-
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...
-
For the finite square well potential, prove the formula for the transmission coefficient (7.83), calculate \(R\), and prove that \(|R|^{2}+T=1\). Equation 7.83:- T = |S|2 K3 = 42 2(+)2 cos KL + (2 +...
-
The data in Table 1 represent the first exam score of 10 students enrolled in Introductory Statistics. Treat the 10 students as a population. (a) Compute the population mean. (b) Find a simple random...
-
Consider an asymmetric potential barrier, with Calculate the tunneling probability \(T\) for energy \(U_{1} U_{0}\). 0, x < 0 U(x) = U> U, 0 < x 0, x > L. (7.96)
Study smarter with the SolutionInn App