Skip to content

Commit

Permalink
refactor: remove unwanted variables in node_split_best in sklearn fro…
Browse files Browse the repository at this point in the history
…ntend splitter moduel
  • Loading branch information
Ishticode committed Dec 4, 2023
1 parent b016d25 commit 6a75177
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ivy/functional/frontends/sklearn/tree/_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ def node_split_best(
):
start = splitter.start
end = splitter.end
splitter.samples
features = splitter.features
constant_features = splitter.constant_features
n_features = splitter.n_features
Expand All @@ -326,12 +325,9 @@ def node_split_best(

best_split = SplitRecord()
current_split = SplitRecord()
current_proxy_improvement = -ivy.inf
best_proxy_improvement = -ivy.inf

f_i = n_features
f_j = 0
p = 0
p_prev = 0

n_visited_features = 0
Expand Down

0 comments on commit 6a75177

Please sign in to comment.