Skip to content

clear matched impressions after using for L1 norm computation#407

Merged
apasel422 merged 2 commits intow3c:mainfrom
bmcase:clear_matched_impressions
Apr 21, 2026
Merged

clear matched impressions after using for L1 norm computation#407
apasel422 merged 2 commits intow3c:mainfrom
bmcase:clear_matched_impressions

Conversation

@bmcase
Copy link
Copy Markdown
Contributor

@bmcase bmcase commented Apr 21, 2026

The first computation with matched impressions is really just computing the L1 norm. After that we want to clear it otherwise there may be data left in it when we go on to the forward loop over epochs and if the budget checks don't pass we will not add anything to it but it could still have entries it in if we don't clear it here.


Preview | Diff

The first computation with matched impressions is really just computing the L1 norm. After that we want to clear it otherwise there may be data left in it when we go on to the forward loop over epochs and if the budget checks don't pass we will not add anything to it but it could still have entries it in if we don't clear it here.
Comment thread api.bs Outdated
@apasel422 apasel422 merged commit da54ffe into w3c:main Apr 21, 2026
2 checks passed
Comment thread api.bs

1. If |isSingleEpoch| is true:
1. Set |matchedImpressions| to the result of invoking [=common matching logic=]
1. Let |impressions| to the result of invoking [=common matching logic=]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Let |impressions| to the result of invoking [=common matching logic=]
1. Let |impressions| be the result of invoking [=common matching logic=]

@martinthomson martinthomson mentioned this pull request Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants