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
23da5fc5
Unverified
Commit
23da5fc5
authored
May 25, 2022
by
James Lamb
Committed by
GitHub
May 25, 2022
Browse files
[python] add type hints on sklearn metric and eval wrappers (#5238)
parent
1a3afd2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+2
-2
No files found.
python-package/lightgbm/sklearn.py
View file @
23da5fc5
...
@@ -83,7 +83,7 @@ class _ObjectiveFunctionWrapper:
...
@@ -83,7 +83,7 @@ class _ObjectiveFunctionWrapper:
"""
"""
self
.
func
=
func
self
.
func
=
func
def
__call__
(
self
,
preds
,
dataset
)
:
def
__call__
(
self
,
preds
:
np
.
ndarray
,
dataset
:
Dataset
)
->
Tuple
[
np
.
ndarray
,
np
.
ndarray
]
:
"""Call passed function with appropriate arguments.
"""Call passed function with appropriate arguments.
Parameters
Parameters
...
@@ -165,7 +165,7 @@ class _EvalFunctionWrapper:
...
@@ -165,7 +165,7 @@ class _EvalFunctionWrapper:
"""
"""
self
.
func
=
func
self
.
func
=
func
def
__call__
(
self
,
preds
,
dataset
)
:
def
__call__
(
self
,
preds
:
np
.
ndarray
,
dataset
:
Dataset
)
->
Tuple
[
str
,
float
,
bool
]
:
"""Call passed function with appropriate arguments.
"""Call passed function with appropriate arguments.
Parameters
Parameters
...
...
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