Add tile size to the propensity calculation #8478
Open
+79
−42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is an adjustment of the propensity job to take into account tile_format. We also no longer group by section position, though we may add it in the future.
In addition we are using the common tile sizes in to rescale the weights so that the total impressions and clicks do not change much.
This table is applied by multiplying the weight by the clicks, or dividing into impressions of the appropriate position and tile size for the sections view layout. We find a 30% reduction in variance when we compare per hour click-through rates by hour when this correction is applied. When dividing by impressions increased weighting is applied to items that the user has selected when scrolling though the list.
The table schema is changed, so I don't know I need update the version. No other jobs use this as of yet
Related Tickets & Documents
https://mozilla-hub.atlassian.net/browse/GENAI-2450
Reviewer, please follow this checklist