Q1: Consider the same data we used in our lecture. Answer the following questions: X1 0...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q1: Consider the same data we used in our lecture. Answer the following questions: X1 0 X2 Homework 4 September 30, 2023 X3 X4 1 1 y 0 class 0 -1 1 1 -1 0 1 1 Using the gradient descend format we discussed in Week 5 lecture (see slides) to train a perceptron model y = sign(wx+wo) with X = 0.2 and w = [-0.5, -0.5, 0.5] == X 1 1 1 1 0 0 0 0 Artificial Neural Networks (ANN) X2 X3 Y 0 -1 1 1 0 1 1 -1 0 0 1 1 0 1 1 0 1 1 0 -1 1 1 0 -1 Input X X X3- Black box Output Y Output Y is 1 if at least two of the three inputs are equal to 1. Summary of Our Previous Lecture Input nodes X X- X3- Black box W W2 W3 Output node Y y = sign(wx + wo) 1 0 -1 -1 Sign function 1 3 Summary of Our Previous Lecture Input nodes X X X3- Black box W W2 W3 Output node (2) Y y = sign (wx + wo) D x 1 vector D x 1 vector 0 -1 -1 Sign function 0 4 X1 0 1 1 0 X2 0 1 0 1 Y -1 1 1 -1 e =^[yi-f(w(k),x;)] 2 w(k+1) = w(k) + ex ; Example sign(x)={ : learning rate 1 -1 x > 0 x 0 f(wk),x) = sign(w(k) T w(0) = [0,0,0] xi + w(k)) X1 1 0 0 1 1 X2 0 1 0 1 1 1 1 Adding XO Example Y -1 1 1 -1 f(w,x) -1 -1 -1 -1 e =^[yi-f(w(k),xi)] 2 w(k+1) = w(k) + ex ; 1 sign(x)={ -1 : learning rate x > 0 x 0 < f(w(K), x) = sign(w(k)T; xi +w(k)) w(0) = [0,0,0] X1 0 0 X2 X0 1 1 1 1 0 1 0 1 1 1 Adding XO Example Y -1 1 1 -1 f(w,x) -1 -1 -1 -1 A[yi-f(w(k),x;)] 2 w(k+1) = w(k) + ex; ; 1 sign(x)={ -1 : learning rate f(w(k), x) = sign(w(K)T xi + w(k)) Xi x > 0 x 0 w (0) = = [0,0,0] X1 0 1 1 0 X2 Y 0 -1 1 1 0 1 1 -1 f(w,x) -1 -1 (conflict) -1 -1 [yi(w(k),x;)] e= 2 w(k+1) = w(k) + ex ; Example w (1) sign(x)={ : learning rate 1 -1 f(wk),x) = sign(w(k)" x w (0) = [0,0,0] x > 0 x 0 xi + w (k)) 10.21 -8+08-6 +0.2 1 0.2 L0.2J X1 0 1 X2 0 0 1 1 1 0 1 w (k+1) 1 1 1 Y -1 1 1 -1 ^[Yi-JW ,Xi)] f(w,x) 1 1 Example 1(conflict) f(w(k), x) = sign(w(k) * x +w(K)) w() = [0.2, 0.2,0.2] 1 2 w(k) + exi ; w (2) : learning rate 1 sign(x)={_ -1 [0.2] 3-08-6 0.2 0 = x > 0 x 0 = 0.2 -0.2 L0.2J [0.2] 0.2 X1 0 0 1 1 1 0 X2 e 1 0 1 1 ^|Yi-J 1 1 Y -1 1 1 -1 f(w,x) -1 1 1 xi)] 2 w(k+1) = w(k) + ex ; Example 1 (conflict) w (3) sign(x)={ : learning rate 1 -1 f(w(k),x;) = sign(w(k)T, w() = [0.2, 0.2,0] x > 0 x 0 10.21 0.2 - 0.2 1 0 .1 xi + w(K)) 0.2 0 -0.2. X1 0 1 1 0 e X2 0 1 1 1 0 1 1 1 Y w(k+1) = -1 1 1 -1 f(w,x) -1 -1(conflict) -1 Example -1 ^[YiJ\W\Xi)] 2 w(k) = w(k) + ex ; w(4) 1 sign(x)={_ 1 f(w(k), xi) = sign(w(k) T x + w(K)) w () = [0.2, 0, 0.2] : learning rate = x > 0 x 0 0.2 []+ 0 -0.2] +0.2 1 = 0.41 0.2 0 X1 0 0 1 1 1 0 e X2 Y f(w,x) 1 1 0 1 1 1 -1 1 1 -1 ^|Yi-J ^ [YiJ (W,Xi)] -1 1 1 Example 1(conflict) 2 w(k+1) = w(k) + ex ; w (5) : learning rate 1 sign(x)={ -1 T f(w (k), x) = sign(w(k) + x + w(K)) w(4) = [0.4, 0.2,0] = x > 0 x 0 [0.4 0.2 0 0.4 H-] = 0 -0.2. 0.2 1 X1 X2 Y 0 0 -1 -1 1 1 1 1 1 0 0 1 f(w,x) 1 -1 1 -1 e = [yi(w(k),xi)] 2 w(k+1) = w(k) + ex; ; Example 1 sign(x)={ -1 : learning rate f(w(k),x;) = sign(w(k), w (5) = x > 0 x 0 Done! xi + w(k)) [0.4, 0, -0.2] Q1: Consider the same data we used in our lecture. Answer the following questions: X1 0 X2 Homework 4 September 30, 2023 X3 X4 1 1 y 0 class 0 -1 1 1 -1 0 1 1 Using the gradient descend format we discussed in Week 5 lecture (see slides) to train a perceptron model y = sign(wx+wo) with X = 0.2 and w = [-0.5, -0.5, 0.5] == X 1 1 1 1 0 0 0 0 Artificial Neural Networks (ANN) X2 X3 Y 0 -1 1 1 0 1 1 -1 0 0 1 1 0 1 1 0 1 1 0 -1 1 1 0 -1 Input X X X3- Black box Output Y Output Y is 1 if at least two of the three inputs are equal to 1. Summary of Our Previous Lecture Input nodes X X- X3- Black box W W2 W3 Output node Y y = sign(wx + wo) 1 0 -1 -1 Sign function 1 3 Summary of Our Previous Lecture Input nodes X X X3- Black box W W2 W3 Output node (2) Y y = sign (wx + wo) D x 1 vector D x 1 vector 0 -1 -1 Sign function 0 4 X1 0 1 1 0 X2 0 1 0 1 Y -1 1 1 -1 e =^[yi-f(w(k),x;)] 2 w(k+1) = w(k) + ex ; Example sign(x)={ : learning rate 1 -1 x > 0 x 0 f(wk),x) = sign(w(k) T w(0) = [0,0,0] xi + w(k)) X1 1 0 0 1 1 X2 0 1 0 1 1 1 1 Adding XO Example Y -1 1 1 -1 f(w,x) -1 -1 -1 -1 e =^[yi-f(w(k),xi)] 2 w(k+1) = w(k) + ex ; 1 sign(x)={ -1 : learning rate x > 0 x 0 < f(w(K), x) = sign(w(k)T; xi +w(k)) w(0) = [0,0,0] X1 0 0 X2 X0 1 1 1 1 0 1 0 1 1 1 Adding XO Example Y -1 1 1 -1 f(w,x) -1 -1 -1 -1 A[yi-f(w(k),x;)] 2 w(k+1) = w(k) + ex; ; 1 sign(x)={ -1 : learning rate f(w(k), x) = sign(w(K)T xi + w(k)) Xi x > 0 x 0 w (0) = = [0,0,0] X1 0 1 1 0 X2 Y 0 -1 1 1 0 1 1 -1 f(w,x) -1 -1 (conflict) -1 -1 [yi(w(k),x;)] e= 2 w(k+1) = w(k) + ex ; Example w (1) sign(x)={ : learning rate 1 -1 f(wk),x) = sign(w(k)" x w (0) = [0,0,0] x > 0 x 0 xi + w (k)) 10.21 -8+08-6 +0.2 1 0.2 L0.2J X1 0 1 X2 0 0 1 1 1 0 1 w (k+1) 1 1 1 Y -1 1 1 -1 ^[Yi-JW ,Xi)] f(w,x) 1 1 Example 1(conflict) f(w(k), x) = sign(w(k) * x +w(K)) w() = [0.2, 0.2,0.2] 1 2 w(k) + exi ; w (2) : learning rate 1 sign(x)={_ -1 [0.2] 3-08-6 0.2 0 = x > 0 x 0 = 0.2 -0.2 L0.2J [0.2] 0.2 X1 0 0 1 1 1 0 X2 e 1 0 1 1 ^|Yi-J 1 1 Y -1 1 1 -1 f(w,x) -1 1 1 xi)] 2 w(k+1) = w(k) + ex ; Example 1 (conflict) w (3) sign(x)={ : learning rate 1 -1 f(w(k),x;) = sign(w(k)T, w() = [0.2, 0.2,0] x > 0 x 0 10.21 0.2 - 0.2 1 0 .1 xi + w(K)) 0.2 0 -0.2. X1 0 1 1 0 e X2 0 1 1 1 0 1 1 1 Y w(k+1) = -1 1 1 -1 f(w,x) -1 -1(conflict) -1 Example -1 ^[YiJ\W\Xi)] 2 w(k) = w(k) + ex ; w(4) 1 sign(x)={_ 1 f(w(k), xi) = sign(w(k) T x + w(K)) w () = [0.2, 0, 0.2] : learning rate = x > 0 x 0 0.2 []+ 0 -0.2] +0.2 1 = 0.41 0.2 0 X1 0 0 1 1 1 0 e X2 Y f(w,x) 1 1 0 1 1 1 -1 1 1 -1 ^|Yi-J ^ [YiJ (W,Xi)] -1 1 1 Example 1(conflict) 2 w(k+1) = w(k) + ex ; w (5) : learning rate 1 sign(x)={ -1 T f(w (k), x) = sign(w(k) + x + w(K)) w(4) = [0.4, 0.2,0] = x > 0 x 0 [0.4 0.2 0 0.4 H-] = 0 -0.2. 0.2 1 X1 X2 Y 0 0 -1 -1 1 1 1 1 1 0 0 1 f(w,x) 1 -1 1 -1 e = [yi(w(k),xi)] 2 w(k+1) = w(k) + ex; ; Example 1 sign(x)={ -1 : learning rate f(w(k),x;) = sign(w(k), w (5) = x > 0 x 0 Done! xi + w(k)) [0.4, 0, -0.2]
Expert Answer:
Related Book For
Applied Regression Analysis and Other Multivariable Methods
ISBN: 978-1285051086
5th edition
Authors: David G. Kleinbaum, Lawrence L. Kupper, Azhar Nizam, Eli S. Rosenberg
Posted Date:
Students also viewed these programming questions
-
The NOI is $40,000; there are $5,000 in tenant improvement expenditures paid for by the landlord; there is a $200,000 interest-only loan at 8 percent annual interest; the depreciable cost basis of...
-
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...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Prestopino Corporation produces motorcycle batteries. Prestopino turns out 1,500 batteries a day at a cost of $6 per battery for materials and labor. It takes the firm 22 days to convert raw...
-
Show that the axisymmetric potential flow formed by a point source +m at (a, 0), a point sink-(m) at (+a, 0), and a stream U in the x direction becomes a Rankine body of revolution as in Fig. P8.95....
-
Of the 100 students in Example 8.3, how many are taking (a) Fundamentals of Computer Programming but none of the other three courses; (b) Fundamentals of Computer Programming and Introduction to...
-
An engine indicator is used to determine (a) speed (b) temperature (c) pressure (d) m.e.p.
-
Three linked bungee jumpers are depicted in Fig. P25.26. If the bungee cords are idealized as linear springs (i.e., governed by Hooke's law), the following differential equations based on force...
-
The 18-year, $1,000 par value bonds of Waco Industries pay 7 percent interest annually. The market price of the bond is $895, and the market's required yield to maturity on a comparable-risk bond is...
-
1. XYZ Ltd. ("XYZ") yesterday issued a $1,000 par value 5 year bond ("the Bond"), In evaluating any capital budgeting proposal, XYZ has, historically, utilized a Required Rate of Return of 25%. As a...
-
n=5 S? n 1 n= n=4 n=3 n = 2 n = 1 -0.545 ev -0.849 ev -1.51 ev -3.41 eV -13.60 eV
-
Discuss the role of linear programming in production planning under uncertainty and how it can be used to handle demand fluctuations.
-
Qualitative research often involves various forms of data collection. In your assignment this week, you will explore interviews as a type of data collection. Another common form of data collection is...
-
Explain the four options to deal with a sudden drop in liquidity using an example balance sheet. Which would be the best option? Explain why this option would be preferred.?
-
Discuss the approach to Revitalizing Quality and explain why this might have been needed within a few months of BT Retails inception.
-
You came to school to learn to become an active doer. Human behavior courses seem to detract from that focus, emphasizing perspectives and theory. How do you explain why starting with different...
-
Jeremy is a personal trainer. He works at a local gym providing personal training services to members of the gym. Jeremy works at the gym until 3 pm each day. He then takes the train home. He has to...
-
In Exercises find dy/dx by implicit differentiation. xy - y = x
-
A biologist compared the effect of temperature for each of two media on the growth of human amniotic cells in a tissue culture. The data shown in the following table were obtained. a. Assuming that a...
-
Researchers have studied the ecology of ponds in rural Bangladesh. Of particular interest in such studies are the zooplankton, phytoplankton, and copepod counts (per liter of water) in these ponds....
-
A crime victimization study was undertaken in a medium-size southern city. The main purpose was to determine the effects of being a crime victim on confidence in law enforcement authority and in the...
-
To what amount will the following investments accumulate? a. $6,000 invested for 12 years at 12 percent compounded annually b. $7,500 invested for 8 years at 8 percent compounded annually c. $6,400...
-
What is the present value of the following future amounts? a. $805 to be received 10 years from now discounted back to the present at 10 percent b. $376 to be received 5 years from now discounted...
-
At what annual rate would the following have to be invested? a. \($820\) to grow to \($1,988.12\) in 13 years b. \($320\) to grow to \($423.10\) in 6 years c. \($57\) to grow to \($290.30\) in 18...
Study smarter with the SolutionInn App