@@ -1611,7 +1611,7 @@ def test_multiclass_sample_weight_invariance(name):
1611
1611
@pytest .mark .parametrize (
1612
1612
"name" ,
1613
1613
sorted (
1614
- (MULTILABELS_METRICS | THRESHOLDED_MULTILABEL_METRICS | MULTIOUTPUT_METRICS )
1614
+ (MULTILABELS_METRICS | THRESHOLDED_MULTILABEL_METRICS )
1615
1615
- METRICS_WITHOUT_SAMPLE_WEIGHT
1616
1616
),
1617
1617
)
@@ -1638,6 +1638,19 @@ def test_multilabel_sample_weight_invariance(name):
1638
1638
check_sample_weight_invariance (name , metric , y_true , y_pred )
1639
1639
1640
1640
1641
+ @pytest .mark .parametrize (
1642
+ "name" ,
1643
+ sorted (MULTIOUTPUT_METRICS - METRICS_WITHOUT_SAMPLE_WEIGHT ),
1644
+ )
1645
+ def test_multioutput_sample_weight_invariance (name ):
1646
+ random_state = check_random_state (0 )
1647
+ y_true = random_state .uniform (0 , 2 , size = (20 , 5 ))
1648
+ y_pred = random_state .uniform (0 , 2 , size = (20 , 5 ))
1649
+
1650
+ metric = ALL_METRICS [name ]
1651
+ check_sample_weight_invariance (name , metric , y_true , y_pred )
1652
+
1653
+
1641
1654
def test_no_averaging_labels ():
1642
1655
# test labels argument when not using averaging
1643
1656
# in multi-class and multi-label cases
0 commit comments