Compute the L1 and L2 norms of a weight vector together with the matching penalty terms, to build intuition about sparsity and shrinkage.
L1 傾向稀疏,L2 傾向小權重。