Skip to content

Commit

Permalink
Update and fix docs
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <adam2392@gmail.com>
  • Loading branch information
adam2392 committed Jul 20, 2023
1 parent 0b077cf commit 28df968
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions examples/plot_projection_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@

boundary = None
feature_weight = None
missing_value_feature_mask = None

# initialize some dummy data
X = np.repeat(np.arange(25).astype(np.float32), 5).reshape(5, -1)
Expand All @@ -86,8 +87,7 @@
min_samples_leaf,
min_weight_leaf,
random_state,
None,
None,
missing_value_feature_mask,
min_patch_dims,
max_patch_dims,
dim_contiguous,
Expand Down Expand Up @@ -132,8 +132,7 @@
min_samples_leaf,
min_weight_leaf,
random_state,
None,
None,
missing_value_feature_mask,
min_patch_dims,
max_patch_dims,
dim_contiguous,
Expand Down Expand Up @@ -182,8 +181,7 @@
min_samples_leaf,
min_weight_leaf,
random_state,
None,
None,
missing_value_feature_mask,
min_patch_dims,
max_patch_dims,
dim_contiguous,
Expand Down Expand Up @@ -246,8 +244,7 @@
min_samples_leaf,
min_weight_leaf,
random_state,
None,
None,
missing_value_feature_mask,
min_patch_dims,
max_patch_dims,
dim_contiguous,
Expand Down Expand Up @@ -285,8 +282,7 @@
min_samples_leaf,
min_weight_leaf,
random_state,
None,
None,
missing_value_feature_mask,
min_patch_dims,
max_patch_dims,
dim_contiguous,
Expand Down
2 changes: 1 addition & 1 deletion sktree/tree/_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def _build_tree(
max_depth,
random_state,
):
monotonic_cst = None
# monotonic_cst = None
# self.n_categories_ = np.array(
# [
# np.int32(X[:, i].max()) + 1 if i in categorical else -1
Expand Down

0 comments on commit 28df968

Please sign in to comment.