@@ -400,24 +400,24 @@ def set_request(estimator, method_name):
400
400
]
401
401
402
402
403
- @pytest .mark .parametrize (
404
- "cv_estimator" ,
405
- CV_ESTIMATORS ,
406
- )
407
- def test_metadata_is_routed_correctly_to_scorer (cv_estimator ):
408
- registry = _Registry ()
409
- cls = cv_estimator ["cv_estimator" ]
410
- scorer_name = cv_estimator ["scorer_name" ]
411
- scorer = cv_estimator ["scorer" ](registry = registry )
412
- scorer .set_score_request (sample_weight = True )
413
- X = cv_estimator ["X" ]
414
- y = cv_estimator ["y" ]
415
- routing_methods = cv_estimator ["routing_methods" ]
416
-
417
- for method_name in routing_methods :
418
- instance = cls (** {scorer_name : scorer })
419
- method = getattr (instance , method_name )
420
- kwargs = {"sample_weight" : sample_weight }
421
- method (X , y , ** kwargs )
422
- for _scorer in registry :
423
- check_recorded_metadata (obj = _scorer , method = "score" , ** kwargs )
403
+ # @pytest.mark.parametrize(
404
+ # "cv_estimator",
405
+ # CV_ESTIMATORS,
406
+ # )
407
+ # def test_metadata_is_routed_correctly_to_scorer(cv_estimator):
408
+ # registry = _Registry()
409
+ # cls = cv_estimator["cv_estimator"]
410
+ # scorer_name = cv_estimator["scorer_name"]
411
+ # scorer = cv_estimator["scorer"](registry=registry)
412
+ # scorer.set_score_request(sample_weight=True)
413
+ # X = cv_estimator["X"]
414
+ # y = cv_estimator["y"]
415
+ # routing_methods = cv_estimator["routing_methods"]
416
+ #
417
+ # for method_name in routing_methods:
418
+ # instance = cls(**{scorer_name: scorer})
419
+ # method = getattr(instance, method_name)
420
+ # kwargs = {"sample_weight": sample_weight}
421
+ # method(X, y, **kwargs)
422
+ # for _scorer in registry:
423
+ # check_recorded_metadata(obj=_scorer, method="score", **kwargs)
0 commit comments