@@ -25,7 +25,7 @@ ctypedef np.npy_uint32 UINT32_t # Unsigned 32 bit integer
25
25
cdef class Criterion:
26
26
# The criterion compute the impurity and reduction of impurity of the
27
27
# 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 .
29
29
30
30
# Internal structures
31
31
cdef DOUBLE_t* y # Values of y
@@ -67,7 +67,7 @@ cdef class Splitter:
67
67
# to split the samples samples[start:end] as to maximize the reduction of
68
68
# an impurity criterion.
69
69
#
70
- # The impurity computation is delegated to a criterion object.
70
+ # The impurity computations are delegated to a criterion object.
71
71
72
72
# Internal structures
73
73
cdef public Criterion criterion # Impurity criterion
@@ -107,7 +107,7 @@ cdef class Splitter:
107
107
# The value `n_constant_features` is given by the the parent node to its
108
108
# child nodes. The content of the range `[n_constant_features:]` is left
109
109
# undefined, but preallocated for performance reasons
110
- # This allows optimisation with depth-based tree building.
110
+ # This allows optimization with depth-based tree building.
111
111
112
112
# Methods
113
113
cdef void init(self , np.ndarray X, np.ndarray y, DOUBLE_t* sample_weight)
@@ -194,8 +194,8 @@ cdef class TreeBuilder:
194
194
# split on for internal nodes and to compute leaf values for external
195
195
# nodes.
196
196
#
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.
199
199
200
200
cdef Splitter splitter # Splitting algorithm
201
201
0 commit comments