fair-search / fairsearch-fair-for-elasticsearch

Fair search elasticsearch plugin
Apache License 2.0
14 stars 3 forks source link

Deal with cases in which p and k are small, and alpha is large, so no re-ranking is necessary #34

Closed chatox closed 6 years ago

chatox commented 6 years ago

For some combinations of k, p, alpha (for instance, k=10, p=0.1, alpha=0.05), the FA*IR test is always passed without the need of re-ranking.

Such a case can be detected by the AlphaAdjustment routine, which could throw a RerankingNotNeededException or somehow communicate that re-ranking will not be needed.

The output ranking should, if possible, include a variable saying that re-ranking was not done because it was not necessary.

chatox commented 6 years ago

Removing -- mtable generation will change.