Probably of Equal Expected Rank
This package is the Python implementation of the MLIR fairness measure
"Probability of Equal Expected Rank" using ir_measures.
How to use it
You can either directly install it from PyPi through
pip install peer_measure
Or install the GitHub version
pip install pip@git+https://github.com/hltcoe/peer_measure
When importing, please import both peer_measure and ir_measures.
from peer_measure import PEER
import ir_measures
Please refer to the documentation of ir_measures for the general usage.
Parameters
PEER takes two required parameters: weights and lang_mapping.
weights: a int-to-float dictionary specifying the weight for each relevance level. The weight have be sum up to 1.0.lang_mapping: a str-to-str dictionary with keys being thedoc_idand values being the language id of the correspoding document.
You can specify these parameters and the rank cutoff when declaring the measure instance. For example,
measure = PEER(weights={0: 0, 1: 0.5, 2:0, 3: 0.5}, lang_mapping=...)@20
Please refer to our paper for detail definition and implication of the parameters.
Citation
Please consider citing our paper if you use this measure.
@inproceedings{peer,
author = {Eugene Yang and Thomas Jänich and James Mayfield and Dawn Lawrie},
title = {Language Fairness in Multilingual Information Retrieval},
booktitle = {Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) (Short Paper) (Accepted)},
year = {2024},
doi = {10.1145/3626772.3657943}
}
Metadata
Release files for peer-measure 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| peer_measure-0.0.1.tar.gz | 5.1 kB | Without provenance | Details for peer_measure-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| peer_measure-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for peer_measure-0.0.1-py3-none-any.whl |
Total release size: 10.6 kB
Release files / peer_measure-0.0.1.tar.gz
| Download URL | peer_measure-0.0.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e28f1594576c1d7114a1bcfbc1879a447c79d4b78db024fd9d7dba0d68d5f0e5
|
|
BLAKE2b-256 checksum How to use checksums |
bf463e40ed65087929c574486266724fb7ac6990d8e2a3f2e5d8d0fc071525d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.5
|
Release files / peer_measure-0.0.1-py3-none-any.whl
| Download URL | peer_measure-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fbce0a7898f5e5e7be25c4f97b107a39a9edb47c79ffa54c75892e40a3e84301
|
|
BLAKE2b-256 checksum How to use checksums |
3469b4c268e67a541390cccb45bf86df1615f8489cc3df78328f2e798dd7e3ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.5
|
Security for peer-measure 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.