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
b918b5b2
Unverified
Commit
b918b5b2
authored
Jun 28, 2021
by
James Lamb
Committed by
GitHub
Jun 28, 2021
Browse files
[dask] fix typehint on _pad_eval_names() (#4413)
parent
77d9529d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/dask.py
python-package/lightgbm/dask.py
+1
-1
No files found.
python-package/lightgbm/dask.py
View file @
b918b5b2
...
@@ -89,7 +89,7 @@ def _remove_list_padding(*args: Any) -> List[List[Any]]:
...
@@ -89,7 +89,7 @@ def _remove_list_padding(*args: Any) -> List[List[Any]]:
return
[[
z
for
z
in
arg
if
z
is
not
None
]
for
arg
in
args
]
return
[[
z
for
z
in
arg
if
z
is
not
None
]
for
arg
in
args
]
def
_pad_eval_names
(
lgbm_model
:
LGBMModel
,
required_names
:
Optional
[
List
[
str
]
]
=
None
)
->
LGBMModel
:
def
_pad_eval_names
(
lgbm_model
:
LGBMModel
,
required_names
:
List
[
str
])
->
LGBMModel
:
"""Append missing (key, value) pairs to a LightGBM model's evals_result_ and best_score_ OrderedDict attrs based on a set of required eval_set names.
"""Append missing (key, value) pairs to a LightGBM model's evals_result_ and best_score_ OrderedDict attrs based on a set of required eval_set names.
Allows users to rely on expected eval_set names being present when fitting DaskLGBM estimators with ``eval_set``.
Allows users to rely on expected eval_set names being present when fitting DaskLGBM estimators with ``eval_set``.
...
...
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