Leaklens

scikit-learn__scikit-learn-12585

clone fails for parameters that are estimator types

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

Change `base.py`, line 51 to: elif not hasattr(estimator, 'get_params') or isinstance(estimator, type):

The text states the fix: “Change `base.py`, line 51 to: elif not hasattr(estimator, 'get_params') or isinstance(estimator, type):”

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