Skip to content

simonvalentin/boed-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Designing Optimal Behavioral Experiments Using Machine Learning

This repository provides notebooks for running a simplified end-to-end example and for replicating all figures presented in the eLife review paper. See Applying ML for pointers on how to apply machine learning to BOED problems.

Notebooks

  • Simplified example provides a detailed walk-through of the BOED procedure for a simplified example, where we optimize the design of one experimental block to estimate the parameters of the AEG model.
  • Simulation study provides code for generating the plots for figures 4 and 5.
  • Human participant study processing provides code for processing and analysing data from the human participant study.
  • Human participant study provides code for generating the plots for figures 6, 7 and 8.

Scripts

CPU Setup

Install conda dependencies and the project with

conda env create -f environment.yml
conda activate boed-tutorial
python setup.py develop

If the dependencies in environment.yml change, update dependencies with

conda env update --file environment.yml

GPU Cluster Setup

Check local versions of cuda available: ls -d /opt/cu*. You should use one of these (e.g. the latest version) for the cudatoolkit=??.? argument below.

Create a Conda environment with GPU-enabled PyTorch (with e.g. Cuda 10.1):

conda create -n boed-gpu python=3.8 pytorch torchvision cudatoolkit=10.1 -c pytorch
conda activate boed-gpu

Then install dependencies in the GPU environment file:

conda env update --file environment-gpu.yml

Finally, install the Ax platform:

pip install ax-platform

The above command with the environment file can also be used to update the Conda environment when dependencies in the environment file change.

Citation

@article{10.7554/eLife.86224,
	author = {Valentin, Simon and Kleinegesse, Steven and Bramley, Neil R and Seri{\`e}s, Peggy and Gutmann, Michael U and Lucas, Christopher G},
	doi = {10.7554/eLife.86224},
	issn = {2050-084X},
	journal = {eLife},
	month = {jan},
	pages = {e86224},
	pub_date = {2024-01-23},
	publisher = {eLife Sciences Publications, Ltd},
	title = {Designing optimal behavioral experiments using machine learning},
	url = {https://doi.org/10.7554/eLife.86224},
	volume = 13,
	year = 2024,
	bdsk-url-1 = {https://doi.org/10.7554/eLife.86224}}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published