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

implemented "Ranked Pairs" algorithm for merging rankings from different users #7

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

MattAlexMiracle
Copy link
Collaborator

This is an implementation of "Ranked Pairs" (or Tideman's method) for merging different preference structures.
There are many impossibility results of how you can merge different preference structures, like Arrow's impossibility theorem that show that mergings can never be unilaterally perfect.
However, for the properties we need, Ranked Pairs seems to be optimal, since the drawbacks it does have don't apply to us.

One downside is the rather high computational overhead of ~O(n^3), but I think we are not going to have too many votes per prompt, making this not that big of an issue for us (we don't need to rank between different prompts).

rankings from different users
@MattAlexMiracle MattAlexMiracle requested a review from yk as a code owner December 14, 2022 19:04
@yk
Copy link
Collaborator

yk commented Dec 14, 2022

thank you! could you add numpy to backend/requirements.txt ?

Copy link
Collaborator

@yk yk left a comment

Choose a reason for hiding this comment

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

lgtm, thank you

@yk yk merged commit b0a5c9b into LAION-AI:main Dec 14, 2022
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.

2 participants