From both folder Altoida_VAMBN_paper and ADNI_VAMBN_paper Prepare the data for VAMBN model: This is the main analysis file.
- run the R files clean_format->impute_aux->data_types (scripts with fixed settings)
- Grid search to generate best hyperparameters
- run HI-VAE jupyter notebook (up until VP decoding)
- run full R script bnet.R bayesian network, bn prediction evaluation of DMs and MMSE (only for Altoida) and VirtualPatient validation
- decode generated VPs in the HI-VAE notebook
- run R scritpt finalRandomForestPred.R for random forest prediction evaluation of DMs and MMSe (only for Altoida)
Evaluation of Virtual Patients
- Run R script plot_all_marginals_paper.R
- Run R script correlations.R and correlations_paper.R
For Classifiers
- Run R scripts classifierSGL.R and classifierSGLind.R
- Comparisons of performance of classifiers aucAll.R and aucCLassifier.ipynb
For scatter plot generation between different features
- Run scatterPlots.R
Extra for ADNI
- dataPreparationADNI.Rmd to process ADNI data before clean_format.R
- To generate DMs in ADNI -> counterfactual_cognitiveDomain.R and counterfactual_cognitiveDomain.R before bnet.R