Skip to content

Commit 60e3289

Browse files
committed
Fixed documentation on sklearn/tree
1 parent c9e049c commit 60e3289

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/tree/_tree.pxd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ cdef class Splitter:
7575
cdef SIZE_t n_features # X.shape[1]
7676
cdef DTYPE_t* feature_values # temp. array holding feature values
7777
cdef SIZE_t start # Start position for the current node
78-
cdef SIZE_t end # End position for the current ndoe
78+
cdef SIZE_t end # End position for the current node
7979

8080
cdef DTYPE_t* X
8181
cdef SIZE_t X_sample_stride
@@ -87,7 +87,7 @@ cdef class Splitter:
8787
# The samples vector `samples` is maintained by the Splitter object such
8888
# that the samples contained in a node are contiguous. With this setting,
8989
# split reorganizes the node samples `samples[start:end]` in two
90-
# subsets `samples[start:pos]` and `start[pos:end]`.
90+
# subsets `samples[start:pos]` and `samples[pos:end]`.
9191

9292
# Methods
9393
cdef void init(self, np.ndarray X,
@@ -140,7 +140,7 @@ cdef class Tree:
140140
cdef public int max_leaf_nodes # Number of leafs to grow
141141

142142
# Inner structures: values are stored separately from node structure,
143-
# since size determined at runtime.
143+
# since size is determined at runtime.
144144
cdef public SIZE_t node_count # Counter for node IDs
145145
cdef public SIZE_t capacity # Capacity of tree, in terms of nodes
146146
cdef Node* nodes # Array of nodes

0 commit comments

Comments
 (0)