Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <adam2392@gmail.com>
  • Loading branch information
adam2392 committed Aug 15, 2023
1 parent b8dc2c6 commit b13c136
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/whats_new/v0.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Version 0.2

Changelog
---------
- |Efficiency| Upgraded build process to rely on Cython 3.0+, by `Adam Li`_ (:pr:`94`)
- |Efficiency| Upgraded build process to rely on Cython 3.0+, by `Adam Li`_ (:pr:`109`)
- |Feature| Allow decision trees to take advantage of ``partial_fit`` and ``monotonic_cst`` when available, by `Adam Li`_ (:pr:`109`)


Code and Documentation Contributors
Expand Down
Binary file modified examples/overlapping_gaussians.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion sktree/tree/tests/test_honest_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ def test_impute_classes():
assert y_proba.shape[1] == 3


@parametrize_with_checks([HonestTreeClassifier(random_state=12345)])
@parametrize_with_checks([HonestTreeClassifier(random_state=1)])
def test_sklearn_compatible_estimator(estimator, check):
# 1. check_class_weight_classifiers is not supported since it requires sample weight
# 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"]:
pytest.skip()
check(estimator)

0 comments on commit b13c136

Please sign in to comment.