From a52ec7442cb6600212f65f49fc3cef079c2ce019 Mon Sep 17 00:00:00 2001 From: Adam Li Date: Tue, 2 Apr 2024 17:12:01 -0400 Subject: [PATCH] Fixing LOC Signed-off-by: Adam Li --- sklearn/tree/_tree.pyx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/sklearn/tree/_tree.pyx b/sklearn/tree/_tree.pyx index d03a6e5a9f380..688eb6d4d3982 100644 --- a/sklearn/tree/_tree.pyx +++ b/sklearn/tree/_tree.pyx @@ -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 ( @@ -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 (