-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes the order in which the ranking agent passes labels and predicti…
…ons to the loss function. TF loss functions use the convention that the API takes the labels as the first argument and predictions as the second argument. While most loss functions are invariant to the ordering, some are not, such as the sigmoid_cross_entropy loss. PiperOrigin-RevId: 568945812 Change-Id: I079ba05270c338339bc68d10b6485f01c9c3b85d
- Loading branch information
TF-Agents Team
authored and
Copybara-Service
committed
Sep 27, 2023
1 parent
97d8a57
commit 498923f
Showing
2 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters