Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update computeAttributions function (#1309)
Summary: Pull Request resolved: #1309 # 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 Update computeAttributions function. # 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: D37867483 fbshipit-source-id: 5b4ab2de85f061b01b86ae4ab8da3eaaed56ba19
- Loading branch information