machine-learning-book
machine-learning-book copied to clipboard
Ch13, page 345, How to add L1 in second Dense layer?
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.