Skip to content

datajms/COVID19_attribution

Repository files navigation

Variable importance experiments on the Covid-19 patient orientation algorithm

Python experiments on global sensitivity and variable importances methods (Sobol Indices, Shapley Effects and shap) on the French Covid-19 patient orientation algorithm.

Blog article for context and discussion: Breaking down factors of Covid-19 orientation algorithm by importance.

Quick start

Once installed, activate the python environment

. activate

Then, you can re-run each experiment (independent scripts). Each script writes into data_n_figures/all_experiments_results.csv on the fly. You can run several process in parallel, it will not mess up the writing of the file.

cd experiments/
python my_logger.py # Delete csv data and set-up logger
python run_sobol.py # Run Sobol ~ 20min
python run_shapley_effects.py # Run Shapley Effects ~ 24h
python run_kernelshap.py # Run shap ~24h

You can rebuild figures from the csv data:

python build_figures.py

Here are the results! Details in the blog post.

Installation

Instructions to re-run experiments for python ≥3.6

Initial set-up (only once): It creates a python3.6 environment and install requirements with pip.

. init

Resources

Python packages:

  • SALib: Herman, J., & Usher, W. (2017). SALib: an open-source Python library for sensitivity analysis. Journal of Open Source Software, 2(9), 97.
  • shapley-effects: Benoumechiara, N., & Elie-Dit-Cosaque, K. (2017), developed at the CEMRACS 2017 with the help of Iooss, B., Sueur, R., Maume-Deschamps, V., & Prieur, C.
  • shap: Lundberg, S. M., & Lee, S. I. (2017). A unified approach to interpreting model predictions. In Advances in neural information processing systems (pp. 4765-4774).

Sensitivity Analysis and shap Bibliography:

About

Experiment with Covid-19 orientation algorithm and its variable importances

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages