The L1regParam can be configured through anonymous function, and each component can be penalized differently.

This weighted regularization for L1 will be very useful to exclude the intercept from regularization.