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
7c1e92dd
Unverified
Commit
7c1e92dd
authored
Apr 11, 2023
by
James Lamb
Committed by
GitHub
Apr 11, 2023
Browse files
[ci] [python-package] fix mypy errors in cv() (#5828)
parent
99daacf1
Changes
1
Hide 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 @
7c1e92dd
...
@@ -732,8 +732,8 @@ def cv(
...
@@ -732,8 +732,8 @@ def cv(
begin_iteration
=
0
,
begin_iteration
=
0
,
end_iteration
=
num_boost_round
,
end_iteration
=
num_boost_round
,
evaluation_result_list
=
None
))
evaluation_result_list
=
None
))
cvfolds
.
update
(
fobj
=
fobj
)
cvfolds
.
update
(
fobj
=
fobj
)
# type: ignore[call-arg]
res
=
_agg_cv_result
(
cvfolds
.
eval_valid
(
feval
))
res
=
_agg_cv_result
(
cvfolds
.
eval_valid
(
feval
))
# type: ignore[call-arg]
for
_
,
key
,
mean
,
_
,
std
in
res
:
for
_
,
key
,
mean
,
_
,
std
in
res
:
results
[
f
'
{
key
}
-mean'
].
append
(
mean
)
results
[
f
'
{
key
}
-mean'
].
append
(
mean
)
results
[
f
'
{
key
}
-stdv'
].
append
(
std
)
results
[
f
'
{
key
}
-stdv'
].
append
(
std
)
...
...
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