Skip to content

Bug fix, use L1-norm instead of L2-norm for L1 regularization#103

Open
klintan wants to merge 1 commit intoeriklindernoren:masterfrom
klintan:master
Open

Bug fix, use L1-norm instead of L2-norm for L1 regularization#103
klintan wants to merge 1 commit intoeriklindernoren:masterfrom
klintan:master

Conversation

@klintan
Copy link
Copy Markdown

@klintan klintan commented Oct 26, 2022

The default norm for np.linalg.norm is the Frobenius norm or L2-norm. This needs to change to the L1 norm (Manhattan) to be correct.

PS. This project is somewhat abandoned it seems, but I think it makes sense to have a PR for other people looking for things that might be incorrect. I spent some time trying to figure this one out :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant