Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔍📈 Fix MacroRankBasedEvaluator share precomputed weights for different triples #1079

Merged
merged 15 commits into from
Aug 19, 2022

Conversation

mberr
Copy link
Member

@mberr mberr commented Aug 18, 2022

This PR removes the pre-calculation of macro weights, and do this during finalization (of one evaluation round) instead. This should fix the problem with validation weights overlapping with test weights.

Dependencies

@mberr mberr changed the title fix(MacroRankBasedEvaluator): use defaultdict and cpu, pt. 2 Fix MacroRankBasedEvaluator share precomputed weights for different triples Aug 18, 2022
@mberr mberr marked this pull request as ready for review August 18, 2022 16:31
@cthoyt
Copy link
Member

cthoyt commented Aug 18, 2022

@Allaway11 can you take a look at this?

@mberr mberr changed the title Fix MacroRankBasedEvaluator share precomputed weights for different triples 🔍📈 Fix MacroRankBasedEvaluator share precomputed weights for different triples Aug 18, 2022
@cthoyt cthoyt self-requested a review August 18, 2022 17:10
@Allaway11
Copy link
Contributor

@Allaway11 can you take a look at this?

Looks good to me! 🚀 👍

@mberr
Copy link
Member Author

mberr commented Aug 18, 2022

don't merge yet; I found a few occasions where we can re-use the constant 🙂

@mberr mberr marked this pull request as draft August 18, 2022 17:23
@mberr mberr marked this pull request as ready for review August 18, 2022 17:23
@cthoyt
Copy link
Member

cthoyt commented Aug 18, 2022

Fine, merge when ready

@mberr mberr marked this pull request as draft August 19, 2022 07:49
@mberr mberr marked this pull request as ready for review August 19, 2022 08:05
@mberr mberr enabled auto-merge (squash) August 19, 2022 08:14
@mberr mberr merged commit 9a346e1 into master Aug 19, 2022
@mberr mberr deleted the pr/Allaway11/1076 branch August 19, 2022 08:32
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.

None yet

3 participants