# MIMIC-CXR experiment

This is the readme for the code of the Neurips submission "Unity by Diversity: Improved Representation Learning in Multimodal VAEs" to reproduce the MIMIC-CXR experiment.

PLEASE DO NOT DISTRIBUTE

If you would like to run our code, there are a few steps to take:

1. set up the conda environment using the mimic_environment.yml file
2. execute the data preparation pipeline running the provided script:
python data_preparation/mml/dataio/prepare_dataset.py
3. build dataset splits running the provided Jupyter Notebook:
mvvae/notebooks/MIMIC_CXR_SPLITTER_runner.ipynb
4. convert dataset in dask format running the provided Jupyter Notebook:
mvvae/notebooks/from_npy_to_dask.ipynb 
6. train the supervised classifier using the provided main file:
python mvvae/main_train_clf_MimicCXR.py
7. train and evaluate VAE models using the provided main file:
python mvvae/main_mv_wsl.py 

All datasets can be downloaded from publicly available sources (see appendix of the paper).
