Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ch13, page 345, How to add L1 in second Dense layer? #143

Open
chaos-zhou opened this issue Sep 1, 2023 · 0 comments
Open

Ch13, page 345, How to add L1 in second Dense layer? #143

chaos-zhou opened this issue Sep 1, 2023 · 0 comments

Comments

@chaos-zhou
Copy link

the book is compute the l1_penalty, but not write how to use in second Dense layer's weight. if add l1_penalty in loss_fn, then l1 penalty the whole model, not the second dense layer.

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

No branches or pull requests

1 participant