-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ComputeAttributionHelper function for new output format (#1308)
Summary: Pull Request resolved: #1308 # Reformat Attribution Output We will apply performance improvements to private attribution product (game) by changing the format of attribution result. For this we will need to make changes to both private attribution and private aggregation stages. The original format of attribution result is: { "last_click_1d": { "default": { "0": [ { "is_attributed": true }, { "is_attributed": false }, { "is_attributed": false }, { "is_attributed": false }, { "is_attributed": false } ] } } } Proposed format: [ {ad_id, conversion_value, is_attributed}, {ad_id, conversion_value, is_attributed}, {ad_id, conversion_value, is_attributed}, {ad_id, conversion_value, is_attributed}, ] The design plan: https://docs.google.com/document/d/1QyBtCkTeZA8IXAkok0n8EhfCZeLTU0SSN1VL57vjBCo/edit?usp=sharing # This Diff Add ComputAttributionHelperV2 function for new output format. # This Stack 1. Add a flag to validate whether to use new vs old output format in Private Attribution. 2. Modify PCS stage for attribution with the new flag. 3. Parse the input for new output format. 4. Add a new output format file in attribution game. 5. **Add ComputAttributionHelperV2 function for new output format.** 6. Update computeAttributions function. 7. Update unit tests for PCF2 Attribution logic. 8. Add json test files for new output format. 9. Modify revealXORedResult method for new output. 10. Add unit tests for new output format - testCorrectness. Reviewed By: chualynn Differential Revision: D37765615 fbshipit-source-id: 858302db5de13708daccb28a17591388d4b1ff88
- Loading branch information
1 parent
31914fe
commit 692e27e
Showing
3 changed files
with
201 additions
and
105 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
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