machine-learning-book icon indicating copy to clipboard operation
machine-learning-book copied to clipboard

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

Open chaos-zhou opened this issue 2 years ago • 0 comments

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.

chaos-zhou avatar Sep 01 '23 17:09 chaos-zhou