CMIP - Conditional Mutual Information with the logging Policy
CMIP implementation from the 2023 SIGIR paper: An Offline Metric for the Debiasedness of Click Models.
The metric quantifies the mutual information between a new click model policy and the production system that collected the train dataset (logging policy), conditional on human relevance judgments. CMIP quantifies the degree of debiasedness (see paper for details). A policy is said to be debiased w.r.t. its logging policy with a cmip <= 0.
Example
import numpy as np
n_queries = 1_000
n_results = 25
# Human relevance annotations per query-document pair
y_true = np.random.randint(5, size=(n_queries, n_results))
# Relevance scores of the logging policy
y_logging_policy = y_true + np.random.randn(n_queries, n_results)
# Relevance scores of a new policy (in this case, strongly dependent on logging policy)
y_predict = y_logging_policy + np.random.randn(n_queries, n_results)
# Number of documents per query, used for masking
n = np.full(n_queries, n_results)
from cmip_metric import CMIP
metric = CMIP()
metric(y_predict, y_logging_policy, y_true, n)
> 0.2687 # The policy predicting y_predict is not debiased w.r.t. the logging policy.
Installation
pip install cmip-metric
Reference
Note: To be published at:
@inproceedings{Deffayet2023Debiasedness,
author = {Romain Deffayet and Philipp Hager and Jean-Michel Renders and Maarten de Rijke},
title = {An Offline Metric for the Debiasedness of Click Models},
booktitle = {Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR`23)},
organization = {ACM},
year = {2023},
}
License
This project uses the MIT license.
Metadata
Release files for cmip-metric 0.1.2
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 |
|---|---|---|---|---|
| cmip_metric-0.1.2.tar.gz | 5.0 kB | Without provenance | Details for cmip_metric-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cmip_metric-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for cmip_metric-0.1.2-py3-none-any.whl |
Total release size: 11.2 kB
Release files / cmip_metric-0.1.2.tar.gz
| Download URL | cmip_metric-0.1.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5577c8d52a4d781542cf9d8e4f0ebca5b0bace030261b4ef548048a2e224d02
|
|
BLAKE2b-256 checksum How to use checksums |
754e40ff740aa163f42c325764765df8fd08d9b792f90129d2bc811d03fc18bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.1 Darwin/22.4.0
|
Release files / cmip_metric-0.1.2-py3-none-any.whl
| Download URL | cmip_metric-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
081a4a45a230275d7579250292e19ff3ced629a180d2c8fa5f0f1caee7ca1599
|
|
BLAKE2b-256 checksum How to use checksums |
61546649787acbbf7186a00422bfdd2b9121806977f7a9829e3ac242739e5996
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.1 Darwin/22.4.0
|
Security for cmip-metric 0.1.2
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.