Skip to content

Commit

Permalink
Fixing LOC
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <adam2392@gmail.com>
  • Loading branch information
adam2392 committed Apr 2, 2024
1 parent d90befc commit a52ec74
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions sklearn/tree/_tree.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,11 @@ cdef class DepthFirstTreeBuilder(TreeBuilder):
# inspection and interpretation
splitter.node_value(tree.value + node_id * tree.value_stride)
if splitter.with_monotonic_cst:
splitter.clip_node_value(tree.value + node_id * tree.value_stride, parent_record.lower_bound, parent_record.upper_bound)
splitter.clip_node_value(
tree.value + node_id * tree.value_stride,
parent_record.lower_bound,
parent_record.upper_bound
)

if not is_leaf:
if (
Expand Down Expand Up @@ -560,8 +564,11 @@ cdef class DepthFirstTreeBuilder(TreeBuilder):
# inspection and interpretation
splitter.node_value(tree.value + node_id * tree.value_stride)
if splitter.with_monotonic_cst:
splitter.clip_node_value(tree.value + node_id * tree.value_stride,
parent_record.lower_bound, parent_record.upper_bound)
splitter.clip_node_value(
tree.value + node_id * tree.value_stride,
parent_record.lower_bound,
parent_record.upper_bound
)

if not is_leaf:
if (
Expand Down

0 comments on commit a52ec74

Please sign in to comment.