Skip to content

Commit

Permalink
Remove unused variable. (#8046)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 4, 2022
1 parent 8746f9c commit ff1c559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/xgboost/core.py
Expand Up @@ -2668,7 +2668,7 @@ def get_split_value_histogram(
values = []
# pylint: disable=consider-using-f-string
regexp = re.compile(r"\[{0}<([\d.Ee+-]+)\]".format(feature))
for i, val in enumerate(xgdump):
for val in xgdump:
m = re.findall(regexp, val)
values.extend([float(x) for x in m])

Expand Down

0 comments on commit ff1c559

Please sign in to comment.