Q.1. Study the below data and answer the following questions. Marks] Note: Positive class label is...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q.1. Study the below data and answer the following questions. Marks] Note: Positive class label is depicted by red circles in the below figure. Negative class label is depicted by blue triangles in the below figure. Round all the calculation to 4 decimal places. -4 -3 (-2,2) (-2,0) -2 (-2,-1) (-1,3) regularization is used. (-1,0) -1 X₂ 4 (0,4) 3 (0,3) 2+ 1 (0,1) -1 -2- (0,-2) -3- -4 0 (0,-1) (1,2) (1,0) 1 (2,0) 2 [3+1.5+2.5 = 7 f 3 (3,0) 4 X₁ A. Apply the logistic regression with batch gradient descent for two iterations. For first batch iteration use the points on and within the positive (first) quadrant where both features are positive. For second batch iteration use the points on and within the other three quadrants where any feature may take negative values. Use learning rate = 0.7, Wo = W2 X1 0, W₁ =0, W₂ = 0, WX= Wo + W₁ X₁ + W2 X2 and assume no E B. Compute the cost(loss) after every batch learning and state your observation. Assume the second iteration results obtained in previous part A. as the final weights using which predict the class of (X₁, X2) = (1,-1). Use default 0.5 as the threshold. C. Construct the confusion matrix for given first batch of training data in the figure w.r.t below two experiments and comment your choice on the suitability of the threshold using the True Positive Rate Vs False Positive rate: i) Use the decision threshold of 0.6. If h(xi) >=0.6, then map xi to positive class. ii) Use the decision threshold of 0.45. If h(x) <0.45 then map xi to negative class. Q.1. Study the below data and answer the following questions. Marks] Note: Positive class label is depicted by red circles in the below figure. Negative class label is depicted by blue triangles in the below figure. Round all the calculation to 4 decimal places. -4 -3 (-2,2) (-2,0) -2 (-2,-1) (-1,3) regularization is used. (-1,0) -1 X₂ 4 (0,4) 3 (0,3) 2+ 1 (0,1) -1 -2- (0,-2) -3- -4 0 (0,-1) (1,2) (1,0) 1 (2,0) 2 [3+1.5+2.5 = 7 f 3 (3,0) 4 X₁ A. Apply the logistic regression with batch gradient descent for two iterations. For first batch iteration use the points on and within the positive (first) quadrant where both features are positive. For second batch iteration use the points on and within the other three quadrants where any feature may take negative values. Use learning rate = 0.7, Wo = W2 X1 0, W₁ =0, W₂ = 0, WX= Wo + W₁ X₁ + W2 X2 and assume no E B. Compute the cost(loss) after every batch learning and state your observation. Assume the second iteration results obtained in previous part A. as the final weights using which predict the class of (X₁, X2) = (1,-1). Use default 0.5 as the threshold. C. Construct the confusion matrix for given first batch of training data in the figure w.r.t below two experiments and comment your choice on the suitability of the threshold using the True Positive Rate Vs False Positive rate: i) Use the decision threshold of 0.6. If h(xi) >=0.6, then map xi to positive class. ii) Use the decision threshold of 0.45. If h(x) <0.45 then map xi to negative class.
Expert Answer:
Answer rating: 100% (QA)
BWe will apply the following formula to determine the cost loss f... View the full answer
Related Book For
Introductory Statistics Exploring The World Through Data
ISBN: 9780321978271
2nd Edition
Authors: Robert Gould, Colleen Ryan
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
THIRD AVENUE SOFTWARE HEALTH-CARE APP PROJECT This case is new for the ninth edition of Information Technology Project Management . The case provides an opportunity to apply agile and Scrum...
-
Find the lengths of the curves. The cardioid r = 1 + cos
-
Apple, Inc. Section 2, Analytical Procedures Based on TABLE 8-1, p. 220 Examples of Planning Analytical Procedures and the sections on Analytical Procedures in the text, select three ratios (e.g....
-
In glass, which end of the visible spectrum has the smallest critical angle for total internal reflection?
-
Choose a country from three of the regions presented in Table 6.7. Using the Internet, collect as much information as you believe is needed to identify the potential for market segments based on age,...
-
Majestic Trucking Inc. (Majestic) is a small trucking company that carries freight between centres in central Canada and the northeastern United States. The Mozart family of Cobourg owns Majestic,...
-
Consider the closed system with mass-action rate constants as shown. Suppose the rate constants are (in min-1) k = 0.05, kg = 0.7, k2= 0.005, and k4 = 0.4. ki k3 A B C k2 ka (a) Construct a...
-
Create a cashflow statement (table) with the following information: Purchase equipment for $10,000, depreciable using MACRS 7-year recovery period. Sales price per unit $15/unit Material costs per...
-
If BZ Engineers provides its two employees with $460 worth of protective clothing (each), for no cost to each employee, for use only at work, during the FBT year ended 31 March 2023, what would the...
-
Suppose that we have two hosts. Host A sends a TCP segment ( ( Seq = 4 3 , ACK = 1 0 3 ) , which host B replies with a TCP segment ( ( Seq = 1 0 3 , ACK = 5 7 ) . What is the size of the rst TCP...
-
4) Convert the following binary values from 4 bit numbers to 7 bit values a) 2s complement value: 0101 b) 2s complement value: 1010 c) Unsigned binary value: 0101 d) Unsigned binary value: 1010 e)...
-
A company accrued salary expense of $2,000. How would this be shown on the Statement of Cash Flows? A company accrued salary expense of $2,000. How would this be shown on the Statement of Cash Flows?
-
Alice received property as a beneficiary of her father's estate when he died during the most recent tax year. what would be the starting date for the holding period of property that alice acquired?
-
Which reagent would be used in the following reaction? (just look at functional group to answer the question) OM O Oso, .CH,SCH, (could use Zn and HOAC) O H'/H,0 O CH,MgBr, H,O* O Hg (OAc) 2, NaBH4 O...
-
Frontland Advertising creates, plans, and handles advertising campaigns in a three-state area. Recently, Frontland had to replace an inexperienced office worker in charge of bookkeeping because of...
-
GPAs by Seating Choice A random sample of students was studied. Whether the student chose to sit in the front, middle, or back row in a college class was observed, along with the person's GPA. Test...
-
When a certain type of thumbtack is tossed, the probability that it lands tip up is 60%. All possible outcomes when two thumbtacks are tossed are listed. U means the tip is up, and D means the tip is...
-
Following the large scale nuclear power plant failure in Japan, a StatCrunch survey was conducted in which respondents were asked about their level of concern over nuclear power and their political...
-
In 2018, Germany had the worlds largest current account surplus of US$291 billion. Using this one piece of information, answer the following questions. a. Which was greater, the income Germans earned...
-
In the first quarter of 2019, the output gap in the United States was 0.8%. Make a prediction about what you think the output gap will be in the second quarter of 2019. Explain your reasoning.
-
Around $500 billion in U.S. Treasuries are traded each day and many countries hold U.S. Treasuries, as they are considered a very safe investment. For example, as of October 2018, Japan held $1,018.5...
Study smarter with the SolutionInn App