Basic logistic regression question
From lecture 9 page 23 of the slides there is an algorithm of how to implement logistic regression. In step 3 it explains how to compute the gradient. Is the Ein value actually a vector or is it a single number? If it's a single number then the weight would be the same for every value in the weight vector so it seems like Ein is a vector. Is my understanding correct?
And if it's a vector then I'm a little unclear on how to compute the values. Each training point has two values x1 and x2 and an outcome y. So to calculate Ein do I just use x1 and weight1 to find the first value and then use x2 and weight2 to find the second value?
Hopefully the above makes sense, I seem to be struggling with something that seems like it should be pretty simple.
