You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Interactions between array API and sparse coefficients are not documented #34114
It's not expected that coefficients would have exact zeros with the supported solver 'lbfgs' for array API (although it can still happen when columns have the same value in all rows), but technically a user can still call .sparsify() on an estimator that was fitted to array API classes, in which case it will fail.
The documentation is not clear about limitations of LogisticRegression under array API, such as not being able to sparsify coefficients or not being able to make predictions if it somehow succeeds.
Suggest a potential alternative/fix
Documentation should be clear about limitations of methods from estimators when using array API classes.
Activity
StefanieSenger commentedon May 26, 2026
Thanks for reporting, @david-cortes-intel! I agree on exploring the current behaviour and documenting it.
sarveshvetrivel commentedon May 26, 2026
Hi, I'd like to work on this documentation issue.