Skip to content

Commit 2105949

Browse files
committed
Working..
Signed-off-by: Adam Li <adam2392@gmail.com>
1 parent 49526f0 commit 2105949

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sklearn/tree/_criterion.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# See _criterion.pyx for implementation details.
1313

14-
# from libcpp.vector cimport vector
14+
from libcpp.vector cimport vector
1515

1616
from ._tree cimport DTYPE_t # Type of X
1717
from ._tree cimport DOUBLE_t # Type of y, sample_weight

sklearn/tree/_criterion.pyx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ from ._utils cimport WeightedMedianCalculator
3434
cdef double EPSILON = 10 * np.finfo('double').eps
3535

3636
cdef class BaseCriterion:
37-
"""This is an abstract interface for criterion. For example, a tree model could
37+
"""This is an abstract interface for criterion.
38+
39+
For example, a tree model could
3840
be either supervisedly, or unsupervisedly computing impurity on samples of
3941
covariates, or labels, or both. Although scikit-learn currently only contains
4042
supervised tree methods, this class enables 3rd party packages to leverage

sklearn/tree/_splitter.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ cdef class BaseSplitter:
9797
cdef class Splitter(BaseSplitter):
9898
cdef public Criterion criterion # Impurity criterion
9999
cdef const DOUBLE_t[:, ::1] y
100-
100+
101101
cdef int init(
102102
self,
103103
object X,

0 commit comments

Comments
 (0)