LFD Book Forum

LFD Book Forum (http://book.caltech.edu/bookforum/index.php)
-   Homework 6 (http://book.caltech.edu/bookforum/forumdisplay.php?f=135)
-   -   *ANSWER* questions w linear regression & weight decay (http://book.caltech.edu/bookforum/showthread.php?t=4285)

warren 05-19-2013 02:53 PM

Re: *ANSWER* questions w linear regression & weight decay
I re-did #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 pseudo-inverse with Octave that I had gotten with Clojure, but I seem to have gotten the right answer with Octave for the in-sample and out-of-sample classification errors. So I'll just take this as showing that Octave is a lot less error-prone 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 in-sample and out-of-sample 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. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.