Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

Q.1. Study the below data and answer the following questions. Marks] Note: Positive class label is depicted

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)

Step by Step Solution

3.47 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

BWe will apply the following formula to determine the cost loss f... 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_2

Step: 3

blur-text-image_3

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

Introductory Statistics Exploring The World Through Data

Authors: Robert Gould, Colleen Ryan

2nd Edition

9780321978509, 321978277, 321978501, 978-0321978271

More Books

Students also viewed these Programming questions

Question

Find the lengths of the curves. The cardioid r = 1 + cos

Answered: 1 week ago