Skip to content

Commit 590f44e

Browse files
author
v715
committed
Revert Morgan's changes to the split criteria
2 parents 0aa513f + d717241 commit 590f44e

File tree

8 files changed

+414
-506
lines changed

8 files changed

+414
-506
lines changed

sklearn/tree/_criterion.pxd

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ cdef class Criterion:
6565
cdef double impurity_improvement(self, double impurity) nogil
6666
cdef double proxy_impurity_improvement(self) nogil
6767

68-
cdef double node_impurity2(self, double* pred_weights) nogil
69-
cdef void children_impurity2(self, double* impurity_left,
70-
double* impurity_right, double* pred_weights) nogil
71-
cdef double proxy_impurity_improvement2(self, double* pred_weights) nogil
72-
7368
cdef class ClassificationCriterion(Criterion):
7469
"""Abstract criterion for classification."""
7570

@@ -80,8 +75,4 @@ cdef class RegressionCriterion(Criterion):
8075
"""Abstract regression criterion."""
8176

8277
cdef double sq_sum_total
83-
84-
cdef class ObliqueProjection(RegressionCriterion):
85-
pass
86-
cdef class AxisProjection(RegressionCriterion):
87-
pass
78+
cdef object random_state # Random state for predictor weights (Projection-Based Splitters)

0 commit comments

Comments
 (0)