{"id":20752734,"url":"https://github.com/pawel-czyz/labelshift","last_synced_at":"2025-07-01T05:34:59.669Z","repository":{"id":47614757,"uuid":"363643455","full_name":"pawel-czyz/labelshift","owner":"pawel-czyz","description":"Bayesian Quantification with Black-Box Estimators","archived":false,"fork":false,"pushed_at":"2024-06-13T11:37:07.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-11T14:53:47.851Z","etag":null,"topics":["data-shift","label-shift","machine-learning","prior-probability-shift","quantification"],"latest_commit_sha":null,"homepage":"https://openreview.net/forum?id=Ft4kHrOawZ","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pawel-czyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-02T12:16:34.000Z","updated_at":"2024-06-13T11:37:07.000Z","dependencies_parsed_at":"2024-05-27T20:06:01.164Z","dependency_job_id":"2bae34c3-1884-4f9d-bdae-ad6d23c1f1fd","html_url":"https://github.com/pawel-czyz/labelshift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pawel-czyz/labelshift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawel-czyz%2Flabelshift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawel-czyz%2Flabelshift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawel-czyz%2Flabelshift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawel-czyz%2Flabelshift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawel-czyz","download_url":"https://codeload.github.com/pawel-czyz/labelshift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawel-czyz%2Flabelshift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262904450,"owners_count":23382357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-shift","label-shift","machine-learning","prior-probability-shift","quantification"],"created_at":"2024-11-17T08:42:34.433Z","updated_at":"2025-07-01T05:34:59.199Z","avatar_url":"https://github.com/pawel-czyz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"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)\n[![Venue](https://img.shields.io/badge/venue-TMLR_2024-darkblue)](https://openreview.net/forum?id=Ft4kHrOawZ)\n[![build](https://github.com/pawel-czyz/labelshift/actions/workflows/build.yml/badge.svg)](https://github.com/pawel-czyz/labelshift/actions/workflows/build.yml)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n# Bayesian quantification with black-box estimators\n\n*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.\n\n## Installation\n\nWe recommend using [Micromamba](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html) to set a new Python 3.11 environment.\nThen, the package can be installed with:\n\n```bash\n$ pip install -e .\n```\n\nTo reproduce the experiments, install [Snakemake](https://snakemake.readthedocs.io/en/stable/) using the instructions provided. Then, install additional dependencies:\n\n```bash\n$ pip install -r requirements.txt\n```\n\nThe experiments can be reproduced by running:\n\n```bash\n$ snakemake -c4 -s workflows/WORKFLOW_NAME.smk\n```\n\n\n## Citation\n\nIn order to cite this code, please use:\n\n```\n@article{\n    Ziegler-Czyz-2024-Bayesian-Quantification,\n    title={Bayesian Quantification with Black-Box Estimators},\n    author={Albert Ziegler and Pawe{\\l} Czy{\\.z}},\n    journal={Transactions on Machine Learning Research},\n    issn={2835-8856},\n    year={2024},\n    url={https://openreview.net/forum?id=Ft4kHrOawZ}\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawel-czyz%2Flabelshift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawel-czyz%2Flabelshift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawel-czyz%2Flabelshift/lists"}