From 2097d0760d52ae049f5cdc84d7680f1be60c993d Mon Sep 17 00:00:00 2001 From: Haoyin Xu Date: Thu, 10 Jul 2025 14:02:02 -0400 Subject: [PATCH] FIX remove xfail_checks --- sklearn/ensemble/_forest.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/sklearn/ensemble/_forest.py b/sklearn/ensemble/_forest.py index 99aa86157d6e9..3a8e4d86a66e0 100644 --- a/sklearn/ensemble/_forest.py +++ b/sklearn/ensemble/_forest.py @@ -2161,11 +2161,11 @@ def __init__( def __sklearn_tags__(self): tags = super().__sklearn_tags__() # TODO: replace by a statistical test, see meta-issue #16298 - tags._xfail_checks = { - "check_sample_weight_equivalence": ( - "sample_weight is not equivalent to removing/repeating samples." - ), - } + # tags._xfail_checks = { + # "check_sample_weight_equivalence": ( + # "sample_weight is not equivalent to removing/repeating samples." + # ), + # } return tags @@ -2548,11 +2548,11 @@ def __init__( def __sklearn_tags__(self): tags = super().__sklearn_tags__() # TODO: replace by a statistical test, see meta-issue #16298 - tags._xfail_checks = { - "check_sample_weight_equivalence": ( - "sample_weight is not equivalent to removing/repeating samples." - ), - } + # tags._xfail_checks = { + # "check_sample_weight_equivalence": ( + # "sample_weight is not equivalent to removing/repeating samples." + # ), + # } return tags @@ -3675,9 +3675,9 @@ def transform(self, X): def __sklearn_tags__(self): tags = super().__sklearn_tags__() # TODO: replace by a statistical test, see meta-issue #16298 - tags._xfail_checks = { - "check_sample_weight_equivalence": ( - "sample_weight is not equivalent to removing/repeating samples." - ), - } + # tags._xfail_checks = { + # "check_sample_weight_equivalence": ( + # "sample_weight is not equivalent to removing/repeating samples." + # ), + # } return tags