Skip to content

Commit 5647fc6

Browse files
authored
XGBRanker documentation: missing default objective (dmlc#8347)
1 parent 8f3dee5 commit 5647fc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python-package/xgboost/sklearn.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,10 @@ def fit(
17831783
"Implementation of the Scikit-Learn API for XGBoost Ranking.",
17841784
["estimators", "model"],
17851785
end_note="""
1786+
.. note::
1787+
1788+
The default objectivefor XGBRanker is "rank:pairwise"
1789+
17861790
.. note::
17871791
17881792
A custom objective function is currently not supported by XGBRanker.

0 commit comments

Comments
 (0)