Machine Learning.
to use the KL divergence, but we also can use L1 sparse penalty. (more info here). When we wish to make the weight more sparse we can use the above equation on the weight itself. (more info here.). Also we can use L2 penalty which makes the values small. For K sparse we can choose only certain k