Question: Implementing Classification Model: First some background for classification: You are given labeled data { ( xi , yi ) } N i = 1 for
Implementing Classification Model: First some background for classification:
You are given labeled data xi yiN
i for xi in Rd and yi in
Logistic regression involves choosing a label according to
y signw x
Note we ignore the yintercept term here, so we only need the optimal w in Rd
It turns out the correct function to minimize to find the weights is
F w
N
N
i
log
ewxiyi
Questions:
a Is F w a convex function?
b Write down the gradient descent algorithm for minimizing F You need to
specify the starting point, the formula of the gradient, but you do not need
to specify the exact choice of the stepsize.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
