How to get sparsity in individual columns in coef_ in a LASSO model? #28380
Unanswered
kabirkumar96
asked this question in
Q&A
Replies: 1 comment
-
This is not possible. The selection can be set to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I want to get sparse coefficients after training a LASSO model but I want the sparsity to be maintained on each column of the coefficients.
Suppose after training sklearn.linear_model.Lasso with 5 input dimension and 3 output dimension I get the following coeff _ :
Is it possible to enforce sparsity on a particular column? For example:
Beta Was this translation helpful? Give feedback.
All reactions