LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > Homework 6

Reply
 
Thread Tools Display Modes
  #11  
Old 05-19-2013, 02:53 PM
warren warren is offline
Junior Member
 
Join Date: May 2013
Location: Tulsa, OK
Posts: 4
Default 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.)
Reply With Quote
Reply

Thread Tools
Display Modes

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 Jump


All times are GMT -7. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, 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.