Skip to content

Commit

Permalink
removed best.improvement from is_children_impurity_proxy condition
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Daiha <[email protected]>
  • Loading branch information
gdaiha committed May 10, 2024
1 parent 0df03b6 commit 1d44cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions econml/tree/_splitter.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ cdef class BestSplitter(Splitter):
best.impurity_left_val = best.impurity_left
best.impurity_right_val = best.impurity_right

best.improvement = self.criterion.impurity_improvement(impurity,
best.impurity_left, best.impurity_right)
best.improvement = self.criterion.impurity_improvement(impurity,
best.impurity_left, best.impurity_right)

# Respect invariant for constant features: the original order of
# element in features[:n_known_constants] must be preserved for sibling
Expand Down

0 comments on commit 1d44cef

Please sign in to comment.