LFD Book Forum  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2012, 06:00 PM
samirbajaj samirbajaj is offline
Member
 
Join Date: Jul 2012
Location: Silicon Valley
Posts: 48
Default FYI: Matlab/Octave users...

If you're using Matlab or Octave for the Linear Regression exercises, you may already know that it offers a built-in function to compute the pseudo-inverse of a matrix (the "X dagger" in the lectures).

Type 'help pinv' for more information.

Thanks.

-Samir
Reply With Quote
  #2  
Old 07-19-2012, 08:14 AM
dvs79 dvs79 is offline
Member
 
Join Date: Jul 2012
Location: Moscow, Russia
Posts: 24
Default Re: FYI: Matlab/Octave users...

Thanks, samirbajaj.

I don't know if there's any significant saving of computing time, using pinv(x) instead of inv(x'*x)*x', but definitely pinv looks nicer
Reply With Quote
Reply

Tags
linear regression, matlab, octave

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 04:08 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.