Remove unused variable. (#8046)

This commit is contained in:
Jiaming Yuan 2022-07-05 01:59:22 +08:00 committed by GitHub
parent 8746f9cddf
commit ff1c559084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2668,7 +2668,7 @@ class Booster:
values = [] values = []
# pylint: disable=consider-using-f-string # pylint: disable=consider-using-f-string
regexp = re.compile(r"\[{0}<([\d.Ee+-]+)\]".format(feature)) regexp = re.compile(r"\[{0}<([\d.Ee+-]+)\]".format(feature))
for i, val in enumerate(xgdump): for val in xgdump:
m = re.findall(regexp, val) m = re.findall(regexp, val)
values.extend([float(x) for x in m]) values.extend([float(x) for x in m])