Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT add sparse_coef_ property for ElasticNet and Lasso #238

Open
mathurinm opened this issue Apr 2, 2024 · 0 comments
Open

FEAT add sparse_coef_ property for ElasticNet and Lasso #238

mathurinm opened this issue Apr 2, 2024 · 0 comments

Comments

@mathurinm
Copy link
Collaborator

Sklearn ElasticNet (and its Lasso which inherits from it) exposes a sparse_coef_ attribute after fitting : https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/linear_model/_coordinate_descent.py#L1122

we don't

@Badr-MOUFAD suggested we implement one for compatibility reasons ; we never had any complaint about it but if we claim 100% compat with sklearn, I agree we need it. sklearn LogisticRegression doesn't have it, so I'd just implement it for our Lasso and ElasticNet (not other estimators)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant