Skip to content

Commit 0e43e91

Browse files
authored
FIX remove xfail_checks (#74)
According to errors in neurodata/treeple#361, `xfail_checks` is not available in the tags.
1 parent dda0df6 commit 0e43e91

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

sklearn/ensemble/_forest.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,11 +2161,11 @@ def __init__(
21612161
def __sklearn_tags__(self):
21622162
tags = super().__sklearn_tags__()
21632163
# TODO: replace by a statistical test, see meta-issue #16298
2164-
tags._xfail_checks = {
2165-
"check_sample_weight_equivalence": (
2166-
"sample_weight is not equivalent to removing/repeating samples."
2167-
),
2168-
}
2164+
# tags._xfail_checks = {
2165+
# "check_sample_weight_equivalence": (
2166+
# "sample_weight is not equivalent to removing/repeating samples."
2167+
# ),
2168+
# }
21692169
return tags
21702170

21712171

@@ -2548,11 +2548,11 @@ def __init__(
25482548
def __sklearn_tags__(self):
25492549
tags = super().__sklearn_tags__()
25502550
# TODO: replace by a statistical test, see meta-issue #16298
2551-
tags._xfail_checks = {
2552-
"check_sample_weight_equivalence": (
2553-
"sample_weight is not equivalent to removing/repeating samples."
2554-
),
2555-
}
2551+
# tags._xfail_checks = {
2552+
# "check_sample_weight_equivalence": (
2553+
# "sample_weight is not equivalent to removing/repeating samples."
2554+
# ),
2555+
# }
25562556
return tags
25572557

25582558

@@ -3675,9 +3675,9 @@ def transform(self, X):
36753675
def __sklearn_tags__(self):
36763676
tags = super().__sklearn_tags__()
36773677
# TODO: replace by a statistical test, see meta-issue #16298
3678-
tags._xfail_checks = {
3679-
"check_sample_weight_equivalence": (
3680-
"sample_weight is not equivalent to removing/repeating samples."
3681-
),
3682-
}
3678+
# tags._xfail_checks = {
3679+
# "check_sample_weight_equivalence": (
3680+
# "sample_weight is not equivalent to removing/repeating samples."
3681+
# ),
3682+
# }
36833683
return tags

0 commit comments

Comments
 (0)