The monkey data is split in two files:
- monkeys/source/data.xlsx
- monkeys/source/data_GH.xlsx
Note: Analysis takes into account only results after:
- 2017-03-01 for 'data_GH.xlsx';
- 2020-02-18 for 'data.xlsx'
-
Install Python3 (and pip). For instance, on MacOS using brew:
brew install python3
-
Install dependencies
pip3 install -r requirements.txt
-
Current directory has to be 'monkeys'
cd monkeys
-
Create empty database using Django ORM
python3 manage.py makemigrations python3 manage.py migrate
-
Import the data
python3 import_xlsx
python3 main.py
### Data viewing
-
Create a superuser
python3 manage.py createsuperuser
-
Launch the server
python3 manage.py runserver
Go to http://127.0.0.1:8000/
Current directory has to be 'simulation'
cd simulation
python3 gain-analysis.py
python3 agent-simulation.py
python3 monkey-agent-comparison.py