Skip to content

Commit 542397c

Browse files
committed
Fix inline
Signed-off-by: Adam Li <adam2392@gmail.com>
1 parent 351f14d commit 542397c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sklearn/tree/_tree.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ cdef class DepthFirstTreeBuilder(TreeBuilder):
214214
paths = tree.decision_path(X)
215215
cdef int PARENT
216216
cdef int CHILD
217+
cdef int i
217218
false_roots = {}
218219
X_copy = {}
219220
y_copy = {}
@@ -1018,7 +1019,7 @@ cdef class BaseTree:
10181019
self.capacity = capacity
10191020
return 0
10201021

1021-
cdef inline int _set_split_node(
1022+
cdef int _set_split_node(
10221023
self,
10231024
SplitRecord* split_node,
10241025
Node* node,
@@ -1040,7 +1041,7 @@ cdef class BaseTree:
10401041
node.threshold = split_node.threshold
10411042
return 1
10421043

1043-
cdef inline int _set_leaf_node(
1044+
cdef int _set_leaf_node(
10441045
self,
10451046
SplitRecord* split_node,
10461047
Node* node,

0 commit comments

Comments
 (0)