have almost written Ridger regression solver

I don't get this, what's the purpose of this?