-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dedupe actions for top-k worst action selection
There are several ways to do this. This seems like the least invasive: instead of iterating over all actions in the map, we only iterate over those where the map key matches the primary output of the action. Alternatives considered: - keeping an additional set of all actions; this would require an additional ConcurrentHashSet to contain a pointer to all actions - deduping based on action identity using a temporary set; I'm worried about the additional copy involved, and this would have to be done for each of the three methods PiperOrigin-RevId: 222597517
- Loading branch information
Showing
2 changed files
with
38 additions
and
18 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