Skip to content

Commit

Permalink
Default to topk.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Mar 27, 2023
1 parent b802f80 commit a017e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/ranking_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ struct LambdaRankParam : public XGBoostParameter<LambdaRankParam> {

DMLC_DECLARE_PARAMETER(LambdaRankParam) {
DMLC_DECLARE_FIELD(lambdarank_pair_method)
.set_default(PairMethod::kMean)
.set_default(PairMethod::kTopK)
.add_enum("mean", PairMethod::kMean)
.add_enum("topk", PairMethod::kTopK)
.describe("Method for constructing pairs.");
Expand Down

0 comments on commit a017e0d

Please sign in to comment.