From 5647fc654271f0f85852bd948b7b7a8a8bc24946 Mon Sep 17 00:00:00 2001 From: luca-s Date: Tue, 18 Oct 2022 04:43:29 +0200 Subject: [PATCH] XGBRanker documentation: missing default objective (#8347) --- python-package/xgboost/sklearn.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-package/xgboost/sklearn.py b/python-package/xgboost/sklearn.py index ea7fb0585..895aeadb4 100644 --- a/python-package/xgboost/sklearn.py +++ b/python-package/xgboost/sklearn.py @@ -1783,6 +1783,10 @@ class XGBRFRegressor(XGBRegressor): "Implementation of the Scikit-Learn API for XGBoost Ranking.", ["estimators", "model"], end_note=""" + .. note:: + + The default objectivefor XGBRanker is "rank:pairwise" + .. note:: A custom objective function is currently not supported by XGBRanker.