Re: *ANSWER* questions w linear regression & weight decay
I redid #2 using Octave instead of Clojure. I'm a big Clojure fanatic; it's always the first tool I reach for, but I have to say when doing a lot of matrix stuff Octave is a lot more fun. Strangely, I got exactly the same weights for linear regression using the pseudoinverse with Octave that I had gotten with Clojure, but I seem to have gotten the right answer with Octave for the insample and outofsample classification errors. So I'll just take this as showing that Octave is a lot less errorprone for me for this type of problem than Clojure is. (I still don't see what's wrong with my Clojure. If it were problems with Clatrix (bugs or numerical instability) I would think it would have shown up when doing the linear regression to get the weights, not just when calculating insample and outofsample errors. Oh, well, I guess I'll stick with Octave since that seems to be helping me the most at the moment. (I also had problems with my current evaluation copy of Mathematica.)

All times are GMT 7. The time now is 08:22 PM. 
Powered by vBulletin® Version 3.8.3
Copyright ©2000  2021, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. AbuMostafa, Malik MagdonIsmail, and HsuanTien Lin, and participants in the Learning From Data MOOC by Yaser S. AbuMostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.