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

🪡🗜️ Refactor derived metrics #835

Merged
merged 139 commits into from
Mar 22, 2022
Merged

🪡🗜️ Refactor derived metrics #835

merged 139 commits into from
Mar 22, 2022

Conversation

mberr
Copy link
Member

@mberr mberr commented Mar 14, 2022

This PR fixes the z-adjustment's super calls to not use the expected value / std of the z-mixin (which is always 0/1), but rather of the mixed metric.

It goes even further to refactor the various adjusted metrics to use composition instead of inheritance, and adds even more closed-form calculation of their respective expectations and variances.

@mberr mberr requested a review from cthoyt March 14, 2022 10:08
@cthoyt
Copy link
Member

cthoyt commented Mar 14, 2022

I think it's about time we wrote a few unit tests for these

trigger ci
@mberr mberr added this to the PyKEEN v1.8.0 milestone Mar 14, 2022
@mberr mberr changed the title Fix z-adjustments 🪡🗜️ Fix z-adjustments Mar 14, 2022
@mberr
Copy link
Member Author

mberr commented Mar 14, 2022

@cthoyt ready from my side

@mberr
Copy link
Member Author

mberr commented Mar 14, 2022

@cthoyt locally, the test for variance of ZArithmeticMeanRank fails

tests/cases.py Outdated Show resolved Hide resolved
@cthoyt
Copy link
Member

cthoyt commented Mar 14, 2022

@PyKEEN-bot test

@mberr
Copy link
Member Author

mberr commented Mar 16, 2022

@PyKEEN-bot test

@mberr mberr requested a review from cthoyt March 22, 2022 10:06
@cthoyt cthoyt enabled auto-merge (squash) March 22, 2022 11:40
@cthoyt cthoyt disabled auto-merge March 22, 2022 11:48
Trigger CI
@cthoyt cthoyt enabled auto-merge (squash) March 22, 2022 11:49
Trigger CI
@cthoyt cthoyt merged commit d597efc into master Mar 22, 2022
@cthoyt cthoyt deleted the fix-z-adjusted-scores branch March 22, 2022 12:18
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