From 023dc53dbc9005d6c3b73a00f106f07d12545920 Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Fri, 30 Apr 2021 17:47:23 +0300 Subject: [PATCH] [docs][python][scikit-learn] added note for LGBMRanker (#4243) --- python-package/lightgbm/sklearn.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python-package/lightgbm/sklearn.py b/python-package/lightgbm/sklearn.py index 72b4e938db90..85ebb67ff0e3 100644 --- a/python-package/lightgbm/sklearn.py +++ b/python-package/lightgbm/sklearn.py @@ -952,7 +952,14 @@ def n_classes_(self): 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, sample_weight=None, init_score=None, group=None,