LFD Book Forum How to draw the separating line in 2D input

#1
09-25-2013, 09:20 PM
 Ahmed.Elkayesh Junior Member Join Date: Sep 2013 Location: Earth Posts: 1
How to draw the separating line in 2D input

This is my first post to the forum and I would like to thank the book authors for the availability online and for choosing to make the book price low.

I have a question and I hope someone will help me answer it

In a 2D input space, we have the components in the W vector, w0 for the bias, and w1, w2 for the 2 dimensions of the input.

If the learning algorithm successfully found the W that could classify all input correctly, how is it possible to draw the separation line(or vector) using the 3 components of the W vector?

How could we map w0,w1,w2 to the Line equation y = ax+ b.

Thanks

Ahmed
#2
09-27-2013, 11:18 PM
 yaser Caltech Join Date: Aug 2009 Location: Pasadena, California, USA Posts: 1,477
Re: How to draw the separating line in 2D input

Quote:
 Originally Posted by Ahmed.Elkayesh This is my first post to the forum and I would like to thank the book authors for the availability online and for choosing to make the book price low. I have a question and I hope someone will help me answer it In a 2D input space, we have the components in the W vector, w0 for the bias, and w1, w2 for the 2 dimensions of the input. If the learning algorithm successfully found the W that could classify all input correctly, how is it possible to draw the separation line(or vector) using the 3 components of the W vector? How could we map w0,w1,w2 to the Line equation y = ax+ b. Thanks Ahmed
The line would be which expands as with and being the coordinates in the conventional formulation. As you can see, you need to diivide out by to get the coefficient of which is to be 1, hence the discrepancy between the 3 parameters in one formulation and the 2 parameters in the other formulation.
__________________
Where everyone thinks alike, no one thinks very much

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home General     General Discussion of Machine Learning     Free Additional Material         Dynamic e-Chapters         Dynamic e-Appendices Course Discussions     Online LFD course         General comments on the course         Homework 1         Homework 2         Homework 3         Homework 4         Homework 5         Homework 6         Homework 7         Homework 8         The Final         Create New Homework Problems Book Feedback - Learning From Data     General comments on the book     Chapter 1 - The Learning Problem     Chapter 2 - Training versus Testing     Chapter 3 - The Linear Model     Chapter 4 - Overfitting     Chapter 5 - Three Learning Principles     e-Chapter 6 - Similarity Based Methods     e-Chapter 7 - Neural Networks     e-Chapter 8 - Support Vector Machines     e-Chapter 9 - Learning Aides     Appendix and Notation     e-Appendices

All times are GMT -7. The time now is 03:26 PM.