Question: To solve the linear regression problem, you recall the linear regression has a closed form solution: = ( X T X I ) 1 X
To solve the linear regression problem, you recall the linear regression has a closed form solution: = ( X T X I ) 1 X T Y where I is the identity matrix. Write a function closed_form that computes this closed form solution given the features X , labels Y and the regularization parameter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
