Skip to content

Commit

Permalink
removed unused self.honest condition
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Daiha <gabriel.alves@picpay.com>
  • Loading branch information
gdaiha committed May 10, 2024
1 parent c00b8cf commit 3164b7c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions econml/tree/_splitter.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -631,10 +631,7 @@ cdef class BestSplitter(Splitter):
best.impurity_right_val = best.impurity_right

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

if self.honest:

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 3164b7c

Please sign in to comment.