We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc6bb84 commit e1c1498Copy full SHA for e1c1498
econml/tree/_criterion.pyx
@@ -209,9 +209,9 @@ cdef class Criterion:
209
return (- self.weighted_n_right * impurity_right
210
- self.weighted_n_left * impurity_left)
211
212
- cdef double impurity_improvement(self, float64_t impurity_parent,
213
- float64_t impurity_left,
214
- float64_t impurity_right) nogil:
+ cdef double impurity_improvement(self, double impurity_parent,
+ double impurity_left,
+ double impurity_right) nogil:
215
"""Compute the improvement in impurity
216
This method computes the improvement in impurity when a split occurs.
217
The weighted impurity improvement equation is the following:
0 commit comments