An open API service indexing awesome lists of open source software.

https://github.com/pawel-czyz/labelshift

Bayesian Quantification with Black-Box Estimators
https://github.com/pawel-czyz/labelshift

data-shift label-shift machine-learning prior-probability-shift quantification

Last synced: 2 months ago
JSON representation

Bayesian Quantification with Black-Box Estimators

Awesome Lists containing this project

README

        

[![Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept.](https://www.repostatus.org/badges/latest/concept.svg)](https://www.repostatus.org/#concept)
[![Venue](https://img.shields.io/badge/venue-TMLR_2024-darkblue)](https://openreview.net/forum?id=Ft4kHrOawZ)
[![build](https://github.com/pawel-czyz/labelshift/actions/workflows/build.yml/badge.svg)](https://github.com/pawel-czyz/labelshift/actions/workflows/build.yml)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# Bayesian quantification with black-box estimators

*Quantification* is the problem of estimating the label prevalence from an unlabeled data set. In this repository we provide the code associated with our [manuscript](https://openreview.net/forum?id=Ft4kHrOawZ), which can be used to reproduce the experiments.

## Installation

We recommend using [Micromamba](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html) to set a new Python 3.11 environment.
Then, the package can be installed with:

```bash
$ pip install -e .
```

To reproduce the experiments, install [Snakemake](https://snakemake.readthedocs.io/en/stable/) using the instructions provided. Then, install additional dependencies:

```bash
$ pip install -r requirements.txt
```

The experiments can be reproduced by running:

```bash
$ snakemake -c4 -s workflows/WORKFLOW_NAME.smk
```

## Citation

In order to cite this code, please use:

```
@article{
Ziegler-Czyz-2024-Bayesian-Quantification,
title={Bayesian Quantification with Black-Box Estimators},
author={Albert Ziegler and Pawe{\l} Czy{\.z}},
journal={Transactions on Machine Learning Research},
issn={2835-8856},
year={2024},
url={https://openreview.net/forum?id=Ft4kHrOawZ}
}
```