The conflict_model ----------------(Machine learning) model for mapping environmental drivers of conflict risk.
To install the conflict model, first clone the code from GitHub. It is advised to create an individual python environment first. You can then install the model package into this environment.
$ git clone https://github.com/JannisHoch/conflict_model.git
$ cd path/to/conflict_model
$ conda env create -f environment.yml
$ conda activate conflict_model
$ python setup.py develop
To run the example jupyter notebook, follow these instructions
$ cd path/to/conflict_model/example
$ sh run.sh
This automatically executes the notebook and converts it to a html-file, also stored in the example folder.
It is of course also possible to execute the notebook cell by cell using jupyter notebook.
To run the model from command line, a command line script is provided. All data and settings are retrieved from the settings-file which needs to be provided as inline argument.
$ cd path/to/conflict_model/scripts
$ python runner.py path/to/conflict_model/data/run_setting.cfg
By default, output is stored to the output directory specified in the settings-file.
- Jannis M. Hoch (Utrecht University)
- Sophie de Bruin (Utrecht University, PBL)
- Niko Wanders (Utrecht University)
Corrosponding author: Jannis M. Hoch (j.m.hoch@uu.nl)