Rank aggregation library in Python. PyRanker have implemented 12 different rank aggregation algorithms.
The rank aggregation problem is to combine many different rank orderings on the same set of candidates, or alternatives, in order to obtain a “better” ordering.
- Python 2.7
PyRanker have the following algorithms implemented:
- FootRule
- Borda
- Copeland
- Median Rank
- MScores
- Reciprocal
- CombANZ
- CombMAX
- CombMIN
- CombMED
- CombMNZ
- CombSUM
In Linux/MacOS:
- Install pip
- Within a console, go to the PyRanker project folder.
- Run:
pip install -r requirements.txt
- Loading Ranks:
datasets = ['datasets/sample_1.txt', 'datasets/sample_2.txt', 'datasets/sample_3.txt']
rl = LoadFromFile.load_ranks(datasets)