Leaklens

scikit-learn__scikit-learn-14894

ZeroDivisionError in _sparse_fit for SVM with empty support_vectors_

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

No error is thrown and `self.dual_coef_ = sp.csr_matrix([])`

The text states the fix: “No error is thrown and `self.dual_coef_ = sp.csr_matrix([])`”

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