LFD Book Forum Failed to find the bias term for Q14
 User Name Remember Me? Password
 Register FAQ Calendar Mark Forums Read

 Thread Tools Display Modes
#1
06-10-2013, 04:01 AM
 skwong Member Join Date: Apr 2013 Location: Hong Kong Posts: 13
Failed to find the bias term for Q14

For Q15, I coded to find the K centers for the RBF. Then use pseudo-inverse to find the . Then have difficulty to find the b. I think it should be calculated by picking any point, and substitute into the formula for x and y:

But, when I try it for all 100 points, all calculated b are different. Am I mis-understand something ? Or simply my program bug ? I read through all posts in the forum but cannot figure out any hints.

Further, from "on the right track" post, I used the 4 points sample to test my code, I can find those centres and clusters and phi, but cannot match the weights.

Without proper b, I cannot carry on the simulation for the remaining quiz.
#2
06-10-2013, 04:15 AM
 bargava Junior Member Join Date: Apr 2013 Posts: 8
Re: Failed to find the bias term for Q15

b should be found along with the other weight vectors - using pseudo inverse.

This will be similar to how we did in linear regression. Add a column in the phi matrix with all 1's - and if you solve for w, you will get b.
#3
06-10-2013, 06:08 AM
 yaser Caltech Join Date: Aug 2009 Location: Pasadena, California, USA Posts: 1,478
Re: Failed to find the bias term for Q15

Quote:
 Originally Posted by skwong For Q15, I coded to find the K centers for the RBF. Then use pseudo-inverse to find the . Then have difficulty to find the b. I think it should be calculated by picking any point, and substitute into the formula for x and y: But, when I try it for all 100 points, all calculated b are different. Am I mis-understand something ? Or simply my program bug ? I read through all posts in the forum but cannot figure out any hints.
bargava is correct. This was discussed in a post that is buried in another thread:

http://book.caltech.edu/bookforum/sh...40&postcount=7
__________________
Where everyone thinks alike, no one thinks very much
#4
06-11-2013, 08:03 PM
 skwong Member Join Date: Apr 2013 Location: Hong Kong Posts: 13
Re: Failed to find the bias term for Q15

Thank you very much bargava and professor. Now I understand what is going on. Many thanks !

 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 02:30 PM.

 Contact Us - LFD Book - Top