Skip to content

blei-lab/ml-field-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ml-field-experiments

installation

$ git clone git@github.com:anndvision/ml-field-experiments.git
$ cd ml-field-experiemnts
$ conda env create -f environment.yaml
$ conda activate ml-field-experiments
$ pip install -e .

Covariate Adjustment

Run some simulations

To run a Lin regression simulation on a subset of the GSS data

python3 ml_field_experiments/covariate_adjustment/gss.py --method Lin --output-dir experiments/ --n 2000 --balance 0.5 --num-reps 100

To run a GP simulation using the polynomial dataset (note Regression and Lin methods get access to true polynomial form)

python3 ml_field_experiments/covariate_adjustment/polynomial.py --method GP-Interact --output-dir experiments/ --n 500 --balance 0.5 --num-reps 100

To run a GRF with one response surface simulation on the non-linear funky data

python3 ml_field_experiments/covariate_adjustment/funky.py --method GRF-Adjusted --output-dir experiments/ --n 1000 --balance 0.5 --num-reps 100

Batch deployment of experiments

see the slurm/commands.txt file for a full battery of simulations.

see notebooks/evaluate_ate.ipynb for plotting examples.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published