Leaklens

scikit-learn__scikit-learn-12682

`SparseCoder` doesn't expose `max_iter` for `Lasso`

Verdict: the fix is stated in the issue (Tier A).

In fact, `max_iter` is a parameter to `SparseCoder`, not passed to `LassoLars` (hence the warning I saw in the example), and yet used when `Lasso` is used.

The text states the fix: “In fact, `max_iter` is a parameter to `SparseCoder`, not passed to `LassoLars` (hence the warning I saw in the example), and yet used when `Lasso` is used.”

All SWE-bench Verified tasks · more scikit-learn/scikit-learn tasks · How the check works