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
ffb29862
Unverified
Commit
ffb29862
authored
Apr 11, 2023
by
James Lamb
Committed by
GitHub
Apr 11, 2023
Browse files
[ci] [dask] fix mypy errors about predict() signature (#5827)
parent
6856a45a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
python-package/lightgbm/dask.py
python-package/lightgbm/dask.py
+4
-4
No files found.
python-package/lightgbm/dask.py
View file @
ffb29862
...
...
@@ -1235,7 +1235,7 @@ class DaskLGBMClassifier(LGBMClassifier, _DaskLGBMModel):
def
predict
(
self
,
X
:
_DaskMatrixLike
,
X
:
_DaskMatrixLike
,
# type: ignore[override]
raw_score
:
bool
=
False
,
start_iteration
:
int
=
0
,
num_iteration
:
Optional
[
int
]
=
None
,
...
...
@@ -1270,7 +1270,7 @@ class DaskLGBMClassifier(LGBMClassifier, _DaskLGBMModel):
def
predict_proba
(
self
,
X
:
_DaskMatrixLike
,
X
:
_DaskMatrixLike
,
# type: ignore[override]
raw_score
:
bool
=
False
,
start_iteration
:
int
=
0
,
num_iteration
:
Optional
[
int
]
=
None
,
...
...
@@ -1441,7 +1441,7 @@ class DaskLGBMRegressor(LGBMRegressor, _DaskLGBMModel):
def
predict
(
self
,
X
:
_DaskMatrixLike
,
X
:
_DaskMatrixLike
,
# type: ignore[override]
raw_score
:
bool
=
False
,
start_iteration
:
int
=
0
,
num_iteration
:
Optional
[
int
]
=
None
,
...
...
@@ -1616,7 +1616,7 @@ class DaskLGBMRanker(LGBMRanker, _DaskLGBMModel):
def
predict
(
self
,
X
:
_DaskMatrixLike
,
X
:
_DaskMatrixLike
,
# type: ignore[override]
raw_score
:
bool
=
False
,
start_iteration
:
int
=
0
,
num_iteration
:
Optional
[
int
]
=
None
,
...
...
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