Skip to content

Commit

Permalink
[YDF] Rename LAMBDA_MART_NDCG5 to LAMBDA_MART_NDCG
Browse files Browse the repository at this point in the history
We want to make the truncation parameter configurable. Renaming the loss is the first step.

PiperOrigin-RevId: 675162089
  • Loading branch information
rstz authored and copybara-github committed Sep 16, 2024
1 parent 16c057f commit f253b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow_decision_forests/component/builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ def __init__(

elif isinstance(objective, py_tree.objective.RankingObjective):
num_trees_per_iter = 1
loss = gradient_boosted_trees_pb2.Loss.LAMBDA_MART_NDCG5
loss = gradient_boosted_trees_pb2.Loss.LAMBDA_MART_NDCG
bias = [bias]

elif isinstance(objective, py_tree.objective.AbstractUpliftObjective):
Expand Down

0 comments on commit f253b10

Please sign in to comment.