You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I was looking at that for way too long. It should def be np.linalg.norm(w, 1) for the L1-norm or Manhattan distance, the default is the L2-norm (Frobenius).
Shouldn't
class l1_regularization()
be defined asself.alpha * np.linalg.norm(w, 1)
instead ofself.alpha * np.linalg.norm(w)
?The text was updated successfully, but these errors were encountered: