Bonus (20 points) Implement the closed form solution: You can assume X

Question

Bonus (20 points)

Implement the closed form solution:

You can assume X is a (DenseMarix).

= (X¹X)¯¹x¹y

W =

Question image 1