![]() |
|
#1
|
|||
|
|||
![]()
The zeroth term is just a clever way to simplify the notation by adding the threshold/bias term as another term in the sum. The value of the threshold/bias, however, is not an observed quantity, though - it was chosen. So I am assuming that when updating the weights, we should NOT update the zero-th weight (the threshold/bias). Is this correct?
Thanks, -Fred |
#2
|
||||
|
||||
![]() Quote:
![]() ![]() ![]()
__________________
Where everyone thinks alike, no one thinks very much |
#3
|
|||
|
|||
![]()
Actually, w0 never converges to anything meaningful using the w = w + y*x update rule because x0 = 1 for all the data points and y is constrained to be either -1 or +1... so w0 just flips between -1 and zero forever without converging.
if you print out your w0 values as the PLA algorithm progresses, you can see this happening. |
#4
|
|||
|
|||
![]() Quote:
Code:
-4.0 6 -3.0 76 -2.0 168 -1.0 329 0.0 603 1.0 538 2.0 139 3.0 43 4.0 26 5.0 15 6.0 1 An interesting question would be what is the distribution of the values w0 can reach. It's not like a simple random walk, I don't think, because the farther it gets out the less likely it will step farther from 0 I believe. Maybe a Gaussian? That doesn't seem exact either--looking at a few of these, they seem to be skewed rather than symmetric, but I didn't look at a lot of samples so this could just be normal random variation. |
#5
|
|||
|
|||
![]()
Yeah, I saw the same thing as I kept experimenting with it.
So the problem is that w0 does a random walk over the integers, without ever converging to a meaningful value, at least if you use a starting value of 0. Since w1 and w2 determine the orientation of the dividing line between the positive and negative points, and w0 determines it's location relative to the origin, it seems to me that this update rule can never find a good solution if the true dividing line does not pass through (x1=0,x2=0). |
#6
|
||||
|
||||
![]() Quote:
![]() ![]() ![]()
__________________
Where everyone thinks alike, no one thinks very much |
![]() |
Thread Tools | |
Display Modes | |
|
|