Leaklens

scikit-learn__scikit-learn-11040

Missing parameter validation in Neighbors estimator for float n_neighbors

Verdict: disputed: one of the two checks found quoted evidence (not counted as a flag).

I added a simple check for float inputs for n_neighbors in order to throw ValueError if that's the case.

Disputed: one of the two checks found a stated fix, the other found nothing. Not counted as a flag; the quote is on the task page.

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