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
ef5acfb4
Unverified
Commit
ef5acfb4
authored
Apr 25, 2023
by
James Lamb
Committed by
GitHub
Apr 25, 2023
Browse files
[ci] [python-package] fix mypy errors in Booster.refit() (#5853)
parent
5b72e4ab
Changes
1
Show 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 @
ef5acfb4
...
...
@@ -4189,7 +4189,7 @@ class Booster:
if
dataset_params
is
None
:
dataset_params
=
{}
predictor
=
self
.
_to_predictor
(
pred_parameter
=
deepcopy
(
kwargs
))
leaf_preds
=
predictor
.
predict
(
leaf_preds
:
np
.
ndarray
=
predictor
.
predict
(
# type: ignore[assignment]
data
=
data
,
start_iteration
=-
1
,
pred_leaf
=
True
,
...
...
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