8000 DOC missing words · shidaitimes/scikit-learn@d774953 · GitHub
[go: up one dir, main page]

Skip to content

Commit d774953

Browse files
committed
DOC missing words
1 parent 2e5b210 commit d774953

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sklearn/tree/_tree.pxd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ctypedef np.npy_uint32 UINT32_t # Unsigned 32 bit integer
2525
cdef class Criterion:
2626
# The criterion compute the impurity and reduction of impurity of the
2727
# output space. It's also compute the output statistics such as the mean
28-
# in regression and classes statistics.
28+
# in regression and classes statistics in classification.
2929

3030
# Internal structures
3131
cdef DOUBLE_t* y # Values of y
@@ -67,7 +67,7 @@ cdef class Splitter:
6767
# to split the samples samples[start:end] as to maximize the reduction of
6868
# an impurity criterion.
6969
#
70-
# The impurity computation is delegated to a criterion object.
70+
# The impurity computations are delegated to a criterion object.
7171

7272
# Internal structures
7373
cdef public Criterion criterion # Impurity criterion
@@ -107,7 +107,7 @@ cdef class Splitter:
107107
# The value `n_constant_features` is given by the the parent node to its
108108
# child nodes. The content of the range `[n_constant_features:]` is left
109109
# undefined, but preallocated for performance reasons
110-
# This allows optimisation with depth-based tree building.
110+
# This allows optimization with depth-based tree building.
111111

112112
# Methods
113113
cdef void init(self, np.ndarray X, np.ndarray y, DOUBLE_t* sample_weight)
@@ -194,8 +194,8 @@ cdef class TreeBuilder:
194194
# split on for internal nodes and to compute leaf values for external
195195
# nodes.
196196
#
197-
# This class manages the various stopping criterion and node splitting
198-
# order, e.g. depth-first or best-first.
197+
# This class manages the various stopping criterion and the node splitting
198+
# evaluation order, e.g. depth-first or best-first.
199199

200200
cdef Splitter splitter # Splitting algorithm
201201

0 commit comments

Comments
 (0)
0