JJoeven

Exercises / ml

L2 loss add-on

l2(mse, w, lam) is mse + lam * w * w. Print l2(1.0, 2.0, 0.5).

Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.