LFD Book Forum  

Go Back   LFD Book Forum > Book Feedback - Learning From Data > Chapter 1 - The Learning Problem

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2012, 08:06 PM
antinucleon antinucleon is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
Default what is bias means?

I am confused with the bias.
In wikipedia, w0 is called threshold, so I think it may be any value.
But in this lecture, we make this tuple (1, x0, y0). When in perception process, all changes performed on w0 is +1 or -1, it can't reach the degree of 0.1 or more precious.
Where am I wrong?
Reply With Quote
  #2  
Old 04-15-2012, 09:01 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,474
Default Re: what is bias means?

Quote:
Originally Posted by antinucleon View Post
I am confused with the bias.
In wikipedia, w0 is called threshold, so I think it may be any value.
But in this lecture, we make this tuple (1, x0, y0). When in perception process, all changes performed on w0 is +1 or -1, it can't reach the degree of 0.1 or more precious.
Where am I wrong?
This may be a case of notational confusion, as the lectures follow the book notation, not wikipedia. The tuple in the lecture was (x_0,x_1,x_2) which is the input vector {\bf x}, and x_0=1 by definition. The weight vector is (w_0,w_1,w_2) and all 3 coordinates can assume different values, with w_0 being the threshold (also referred to as bias) coordinate.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #3  
Old 04-16-2012, 12:08 AM
antinucleon antinucleon is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
Default Re: what is bias means?

Quote:
Originally Posted by yaser View Post
This may be a case of notational confusion, as the lectures follow the book notation, not wikipedia. The tuple in the lecture was (x_0,x_1,x_2) which is the input vector {\bf x}, and x_0=1 by definition. The weight vector is (w_0,w_1,w_2) and all 3 coordinates can assume different values, with w_0 being the threshold (also referred to as bias) coordinate.

Thanks dear prof first!
Assume we start at init hypothesis w=(0, 0, 0), init target function is w_t=(0.5, 2, 5)
As w = w + yx, y equals 0 or 1,x_n = (1, 0.5, 3) etc
When in iteration, w_0 = w_0 + y*x_0, as y and x_0 can only be 0 or 1, so the hypothesis function's threshold may be quite different from the target function, right?
Reply With Quote
  #4  
Old 04-16-2012, 01:47 PM
htlin's Avatar
htlin htlin is offline
NTU
 
Join Date: Aug 2009
Location: Taipei, Taiwan
Posts: 570
Default Re: what is bias means?

Quote:
Originally Posted by antinucleon View Post
Thanks dear prof first!
Assume we start at init hypothesis w=(0, 0, 0), init target function is w_t=(0.5, 2, 5)
As w = w + yx, y equals 0 or 1,x_n = (1, 0.5, 3) etc
When in iteration, w_0 = w_0 + y*x_0, as y and x_0 can only be 0 or 1, so the hypothesis function's threshold may be quite different from the target function, right?
In your case, the target function is equivalently (1, 4, 10), (2, 8, 20), so it can still be implemented with the PLA model even with integer w_0. But of course, learning is not for replicating the target function, but for approximating it. In practice the learned hypothesis is somewhat different from the target function more often than not. Hope this helps.
__________________
When one teaches, two learn.
Reply With Quote
  #5  
Old 12-05-2017, 06:00 PM
don slowik don slowik is offline
Member
 
Join Date: Nov 2017
Posts: 11
Default Re: what is bias means?

Problem 1.3 proves that PLA converges (to give the correct sign for each training data point) and in steps of size x as you point out (and of size +/-1 for the 0 component). As w grows in magnitude the fractional accuracy will improve, and after it has converged, normalizing w[1:] to a unit vector gives the direction vector of the separating plane and w[0] will be its' offset from the origin.
Reply With Quote
Reply

Tags
preception

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:33 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.