View Single Post
Old 10-15-2012, 10:17 AM
yaser's Avatar
yaser yaser is offline
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,478
Default Re: PLA and Regression implementation issue

Originally Posted by edeas View Post
Please i would like to know if there is a difference between padding my feature vectors with 1 or -1.

I used -1 in hw1 because it seemed more logical, as the threshold (theta-zero) would change sign when it moves to the other side of the equation.

Now for the regression equation, i am abit confused of what is actually the correct approach. (Though i am assuming it doesnt matter).

what am i not getting?
Setting x_0=+1 or x_0=-1 is equivalent, with the corresponding weight parameter w_0 changing signs accordingly. In this course, we adopted the convention x_0=+1, treating w_0 as a "bias" term rather than a threshold.
Where everyone thinks alike, no one thinks very much
Reply With Quote