Thread: Homework#6 Q3
View Single Post
Old 05-13-2013, 05:07 AM
Kekeli Kekeli is offline
Junior Member
Join Date: Apr 2013
Posts: 6
Default Re: Homework#6 Q3

My answers for any value of K are order(s) of magnitude higher that the options.

w_reg = (Z^\top Z + λI)^-1 Z^T y

As a Python noob, perhaps someone can confirm that I need the linalg.inv of the first term in parentheses, because we cannot use the pinv method when the weight term is present.

Last edited by Kekeli; 05-13-2013 at 06:04 AM. Reason: Realized the upper bound isn't the issue
Reply With Quote