- Python 3
- pip
- packages from
requirements.txt
(to install runpip install -r requirements.txt
)
python main.py run -m all -mc all -d ../data/Warszawa\ 2023/ -r results
To see all available options run:
python main.py run --help
To see all available methods run:
python main.py methods
To see all available metrics run:
python main.py metrics
To change logs level use LOG_LEVEL
environment variable. For example:
LOG_LEVEL=debug python main.py run -m all -mc all -d ../data/Warszawa\ 2023/ -r results
run
command creates subdirectory in results
directory with name in format YYYY-MM-DD HH:MM:SS
and saves there
logs.txt
- logsmethods_outcomes.json
- projects choosen by each methodresults.json
- score of each method for each metric (global and per district) It also creates symlinklatest
to this directory.
Available visualizations:
lower_constraint_satisfaction_table.py
All of them take as input methods_outcomes.json
or/and results.json
files from results/latest
directory.
Creates constraints.json
file in `data path`` directory with constraints for each district as a percentage of the budget.
It is lower bound constraint for each district.
python create_constraints.py [part of the budget] [data path]
python create_constraints.py 0.5 example_data/Warszawa\ 2023/