{"id":30506333,"url":"https://github.com/bookingcom/uplift-interference-simulator","last_synced_at":"2025-08-25T17:09:45.656Z","repository":{"id":279798608,"uuid":"939935641","full_name":"bookingcom/uplift-interference-simulator","owner":"bookingcom","description":"This repository contains the code for the simulation framework for cluster network interference published alongside the paper: Qini curve estimation under clustered network interference - Rickard K.A. Karlsson, Bram van den Akker, Felipe Moraes, Hugo Proença, Jesse H. Krijthe","archived":false,"fork":false,"pushed_at":"2025-02-27T13:52:35.000Z","size":224,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-17T05:13:13.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bookingcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-27T10:54:08.000Z","updated_at":"2025-03-17T09:23:58.000Z","dependencies_parsed_at":"2025-02-27T19:11:53.516Z","dependency_job_id":"87e1401f-accf-4347-bab6-233c5fc574a7","html_url":"https://github.com/bookingcom/uplift-interference-simulator","commit_stats":null,"previous_names":["bookingcom/uplift-interference-simulator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bookingcom/uplift-interference-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bookingcom%2Fuplift-interference-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bookingcom%2Fuplift-interference-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bookingcom%2Fuplift-interference-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bookingcom%2Fuplift-interference-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bookingcom","download_url":"https://codeload.github.com/bookingcom/uplift-interference-simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bookingcom%2Fuplift-interference-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272100683,"owners_count":24873442,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-25T17:09:40.600Z","updated_at":"2025-08-25T17:09:45.640Z","avatar_url":"https://github.com/bookingcom.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Clustered Network Interference Simulator (InfSim)\n\n### About InfSim\nThis repository contains the code for InfSim, a simulation framework for cluster network interference published alongside the paper:\n_Qini curve estimation under clustered network interference_ - **Rickard K.A. Karlsson**, **Bram van den Akker**, Felipe Moraes, Hugo Proença, Jesse H. Krijthe\n\nThe simulator targets researchers interested in causal inference or uplift modelling, and provides a playground for testing methodology for practitioners.\n\nWe recommend starting in the notebook section with `hello-world-compare-policies-with-ground-truth.ipynb`.\n\n#### Repository\n\nInfSim has three main components (found under `src/infsim`):\n- `environments`, containing a base simulator that can be configured with various components (defined in `utils`).\n- `policies`, containing various \"optimal\" and control policies that can be used for simulated data collection and benchmarking.\n- `utils`, containing configurable components for the base environment and general utils such as ground truth evaluation.\n\n\n\n### Setup\n\n#### Requirements\n- Python 3.9+ (recommended 3.12+)\n\n#### Installation\nAfter cloning the repository, navigate to the root directory and install the requirements in a virtual environment.\n\nStart by creating a virtual environment, make sure [virtualenv is installed](https://pypi.org/project/virtualenv/).\n\n```bash\npython -m venv venv\n```\n\nActivate virtual environment\n```bash\nsource venv/bin/activate\n```\n\nInstall requirements\n```bash\npython -m pip install -r requirements.txt\n```\n\nIf you are using this codebase outside an IDE, you need to do an interactive installation in pip.\nFor this, simply run the following in the root of the repo.\n\n```bash\npython -m pip install -e .\n```\n\nTo validate everything is set up correctly, you can run the test suite from the root of the repo:\n\n```\npytest tests\n```\n\nYou know everything is ok when you see something like this.\n\n```\n==== 129 passed, 1 xfailed in 1.18s ====\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbookingcom%2Fuplift-interference-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbookingcom%2Fuplift-interference-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbookingcom%2Fuplift-interference-simulator/lists"}