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
30975929
Unverified
Commit
30975929
authored
Feb 24, 2023
by
James Lamb
Committed by
GitHub
Feb 24, 2023
Browse files
[python-package] fix mypy errors about cv() internals (#5725)
parent
af82fc95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python-package/lightgbm/engine.py
python-package/lightgbm/engine.py
+2
-2
No files found.
python-package/lightgbm/engine.py
View file @
30975929
...
...
@@ -501,8 +501,8 @@ def _agg_cv_result(
raw_results
:
List
[
List
[
Tuple
[
str
,
str
,
float
,
bool
]]]
)
->
List
[
Tuple
[
str
,
str
,
float
,
bool
,
float
]]:
"""Aggregate cross-validation results."""
cvmap
=
collections
.
OrderedDict
()
metric_type
=
{}
cvmap
:
Dict
[
str
,
List
[
float
]]
=
collections
.
OrderedDict
()
metric_type
:
Dict
[
str
,
bool
]
=
{}
for
one_result
in
raw_results
:
for
one_line
in
one_result
:
key
=
f
"
{
one_line
[
0
]
}
{
one_line
[
1
]
}
"
...
...
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