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
023dc53d
"...tests/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "1a3afd2d4dd262a65342c4094093c5cf32656005"
Unverified
Commit
023dc53d
authored
Apr 30, 2021
by
Nikita Titov
Committed by
GitHub
Apr 30, 2021
Browse files
[docs][python][scikit-learn] added note for LGBMRanker (#4243)
parent
91f72e2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+8
-1
No files found.
python-package/lightgbm/sklearn.py
View file @
023dc53d
...
@@ -952,7 +952,14 @@ class LGBMClassifier(_LGBMClassifierBase, LGBMModel):
...
@@ -952,7 +952,14 @@ class LGBMClassifier(_LGBMClassifierBase, LGBMModel):
class
LGBMRanker
(
LGBMModel
):
class
LGBMRanker
(
LGBMModel
):
"""LightGBM ranker."""
"""LightGBM ranker.
.. warning::
scikit-learn doesn't support ranking applications yet,
therefore this class is not really compatible with the sklearn ecosystem.
Please use this class mainly for training and applying ranking models in common sklearnish way.
"""
def
fit
(
self
,
X
,
y
,
def
fit
(
self
,
X
,
y
,
sample_weight
=
None
,
init_score
=
None
,
group
=
None
,
sample_weight
=
None
,
init_score
=
None
,
group
=
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