Question: Suppose you trained a logistic regression classifier and attained the following model f ( x , ) = ( 0 + 1 x + 2

Suppose you trained a logistic regression classifier and attained the following model
f(x,)=(0+1x+2x2),
where 0=4,1=-5, and 2=1.
(a)(6 points) For which values of x will the classifier predict a value of 1.
(b)(6 points) Assume each feature is shifted 2-upwards (add 2 to each sample each feature). Compute the new range of values of x that predict 1.
(c)(6 points) Predict the label for the following testing samples
\table[[x,0.5,1.5,3,6,2.5,2.7,7,3.3]]
2
(d)(6 points) Assume that the Sigmoid function is replaced by the following function
(z)=e-z1+e-z.
How will your predictions in the part (c) change?
2. Suppose you trained a simple logistic regression model and attained the following
hat(y)=0+1x,
where 0=2.5 and 1=1.5.
(12 points) Assume that for each sample ((:xi,yi} we doubled the label (i.e. updated samples (xi,2yi)). Show that the optimal linear regression model for the updated data will be
hat(y)=5+31,
Suppose you are given the following 2-class data where + represents positive class and - represents negative class. The dataset is given in the table below.
\table[[x1,x2,Label],[1,1,=
 Suppose you trained a logistic regression classifier and attained the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!