Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
42a42670
Unverified
Commit
42a42670
authored
Mar 29, 2023
by
James Lamb
Committed by
GitHub
Mar 29, 2023
Browse files
[python-package] fix mypy error in Booster.get_split_value_histogram() (#5794)
parent
9fce6b8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+1
-1
No files found.
python-package/lightgbm/basic.py
View file @
42a42670
...
@@ -4415,7 +4415,7 @@ class Booster:
...
@@ -4415,7 +4415,7 @@ class Booster:
model
=
self
.
dump_model
()
model
=
self
.
dump_model
()
feature_names
=
model
.
get
(
'feature_names'
)
feature_names
=
model
.
get
(
'feature_names'
)
tree_infos
=
model
[
'tree_info'
]
tree_infos
=
model
[
'tree_info'
]
values
=
[]
values
:
List
[
float
]
=
[]
for
tree_info
in
tree_infos
:
for
tree_info
in
tree_infos
:
add
(
tree_info
[
'tree_structure'
])
add
(
tree_info
[
'tree_structure'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment