Skip to content

Commit 90ad5bf

Browse files
committed
removed unused self.honest condition
1 parent 6c5282e commit 90ad5bf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

econml/tree/_splitter.pyx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,10 +631,7 @@ cdef class BestSplitter(Splitter):
631631
best.impurity_right_val = best.impurity_right
632632

633633
best.improvement = self.criterion.impurity_improvement(impurity,
634-
best.impurity_left, best.impurity_right)
635-
636-
if self.honest:
637-
634+
best.impurity_left, best.impurity_right)
638635

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

0 commit comments

Comments
 (0)