Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <adam2392@gmail.com>
  • Loading branch information
adam2392 committed Oct 10, 2024
1 parent 2bd01f9 commit 212db75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions treeple/tests/test_honest_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def test_sklearn_compatible_estimator(estimator, check):
# TODO: this is an error. Somehow a segfault is raised when fit is called first and
# then partial_fit
"check_fit_score_takes_y",
"check_do_not_raise_errors_in_init_or_set_params",
]:
pytest.skip()
check(estimator)
Expand Down
6 changes: 5 additions & 1 deletion treeple/tree/tests/test_honest_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ def test_sklearn_compatible_estimator(estimator, check):
# XXX: can include this "generalization" in the future if it's useful
# zero sample weight is not "really supported" in honest subsample trees since sample weight
# for fitting the tree's splits
if check.func.__name__ in ["check_class_weight_classifiers", "check_classifier_multioutput"]:
if check.func.__name__ in [
"check_class_weight_classifiers",
"check_classifier_multioutput",
"check_do_not_raise_errors_in_init_or_set_params",
]:
pytest.skip()
check(estimator)

Expand Down

0 comments on commit 212db75

Please sign in to comment.