LFD Book Forum SGD Movie rating example
 User Name Remember Me? Password
 Register FAQ Calendar Mark Forums Read

 Thread Tools Display Modes
#11
07-30-2012, 03:24 PM
 yaser Caltech Join Date: Aug 2009 Location: Pasadena, California, USA Posts: 1,478
Re: SGD Movie rating example

Quote:
 Originally Posted by invis Is it right:
You get such terms with and . The coefficients of these terms are indeed and (for ). All you need is to evaluate these partial derivatives, which is straightforward.
__________________
Where everyone thinks alike, no one thinks very much
#12
07-31-2012, 02:28 AM
 invis Senior Member Join Date: Jul 2012 Posts: 50
Re: SGD Movie rating example

So is array size of i*j*2K containing real numbers ? (I mean when I try to compute it)

And after computing we can update such that:
new

using here K from

So it will be the sum of two 1*K dimensional vectors.

Using the same logic for and repeat the loop untill error reach his global minimum.

Think that I miss something again
#13
07-31-2012, 03:32 AM
 yaser Caltech Join Date: Aug 2009 Location: Pasadena, California, USA Posts: 1,478
Re: SGD Movie rating example

Quote:
 Originally Posted by invis So is array size of i*j*2K containing real numbers ?
When you consider one rating at a time, which you do when you use SGD, then and will be fixed and you have only variables.
__________________
Where everyone thinks alike, no one thinks very much
#14
08-01-2012, 02:32 AM
 invis Senior Member Join Date: Jul 2012 Posts: 50
Re: SGD Movie rating example

Thanks a lot, Professor !

Actually I finish this example
But I dont have a real data, so just create some by random.
My rating is array size of 20*20 integer numbers from 1 to 5, U an V is 20*4 real numbers between 0 and 1.

I know that it is impossible to learn something from random data, but thats my for 1000 iterations and

 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:49 PM.

 Contact Us - LFD Book - Top