News for hackers. Stuff that matters.
Re:An introduction to machine learning through polynomial re... by salty_biscuits on Thursday December 26, 2019 @07:00AM (#21883263)
It'd be something like conjugate gradient, not sgd. Unless A itself is too big to fit in memory.
Re:An introduction to machine learning through polynomial re... by nuclearnice1 on Thursday December 26, 2019 @08:53AM (#21883766)
The method John d Cook is referring to is something like conjugate gradient not sgd?

I’m not too familiar with CG. What clues you in that he’s thinking more CG than SGD?

Re:An introduction to machine learning through polynomial re... by salty_biscuits on Thursday December 26, 2019 @04:12PM (#21886821)
It is just "what you do". If it is a small problem the default is qr decomp of A. If you are worried about speed do a cholesky decomp of A'A. If the problem is big (usually because of a sparse A) then you do conjugate gradient (because fill in will bite with a direct method). If it is really, really big (A can't fit in memory) then it isn't clear what the "thing to do" is. It is probably "sketching" but in ML/neural network land everyone just does SGD, which you can think of as a monte carlo estimate of the gradient (A for a linear problem). Maybe sketching and SGD are equivalent (or an appemroximation). "what you do" is based on convergence and stability characteristics.
Re:An introduction to machine learning through polynomial re... by nuclearnice1 on Saturday December 28, 2019 @02:54AM (#21897737)
Helpful. It makes sense that CG maintains sparsity. I didn’t realize it saw use in practice.