Giter VIP home page Giter VIP logo

actlearn_optint's Introduction

Active Learning for Optimal Interventions

Code for paper: Active learning for optimal intervention design in causal models (Nature Machine Intelligence, 2023)

arXiv link: https://arxiv.org/abs/2209.04744

Installation

Follow the two steps illustrated below

  1. create a conda environment using environment.yaml (all dependencies are included; whole process takes about 5 min):
conda env create -f environment.yml
  1. install the current package in editable mode inside the conda environment:
pip install -e .

Examples on synthetic data

Run on a synthetic instance, e.g.:

python run.py --nnodes 5 --noise_level 1 --DAG_type path --std --a_size 2 --a_target 3 4 --acquisition greedy

Source code folder: ./optint/

More examples given in: ./optint/notebook/test_multigraphs.ipynb

Examples on Perturb-CITE-Seq [1]

Source code folder: ./perturb-CITE-seq

Notebooks for exploratory data analysis: ./perturb-CITE-seq/preprocess

  • download and extract data: ./perturb-CITE-seq/preprocess/screen_sanity_checks.ipynb
  • process data: ./perturb-CITE-seq/preprocess/process_data.ipynb

Notebook for running the optimal intervention design task: ./perturb-CITE-seq/test.ipynb

Figures in the paper

Illustraive figures: made using mac keynotes

Pointers for nonillustrative figures:

  • ./optint/notebook/test_ow.ipynb: Fig. 3, Supplementary Fig. 2
  • ./optint/notebook/test_convergence.ipynb: Fig. 4
  • ./optint/notebook/test_multigraphs.ipynb: Fig. 5, Supplementary Fig. 4-7
  • ./optint/notebook/test_moreacq.ipynb: Supplementary Fig. 8
  • ./optint/notebook/test_misspecgraphs.ipynb: Supplementary Fig. 10
  • ./perturb-CITE-seq/preprocess/screen_sanity_checks.ipynb: Supplementary Fig. 11, 13, 14A
  • ./perturb-CITE-seq/preprocess/process_data.ipynb: Supplementary Fig. 12
  • ./perturb-CITE-seq/preprocess/test_linearity.ipynb: Supplementary Fig. 14C
  • ./perturb-CITE-seq/test.ipynb: Fig. 6, Supplementary Fig. 15-18

actlearn_optint's People

Contributors

jqvicky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.