MarkL4YG / informaticup-2020

Projektgruppe "urban parakeet". Ein Lösungsversuch für den informatiCup-2020.
https://www.nordakademie.de/
GNU General Public License v3.0
3 stars 0 forks source link
docker-image infected-cities informaticup informaticup2020 python python3

Informaticup2020 Pandemie-Solution

1 General information

1.1 Group members

1.2 Fulltext documentation and analysis

The implemented approach has been analysed and documented (in German) and can be viewed on Google Docs

2. Running this application

This application is written in python and can be started either directly from the command line or from the provided docker image.

2.1 Configuration and environment

The application port can be changed by setting the SERVER_PORT variable to a non restricted, unused port number.
The application comes with several approaches located in docker/python/approaches. The APPROACH environment variable can be used to select one of them. Its value must be the file name without extension (<approach-name>.py). If no approach has been set, the combined.combined_city_stats_and_vaccine_random approach is used.

Environment variables work for both the command line and the docker image, when passed.

List of available approaches

Note: Both the ml_a2c and the ml_ppo approaches __require manipulation of the IC20 default request timeout. For tests, the timeout was completely disabled.__

2.2 Running via. Docker (Preferred)

The Docker image markl4yg/informaticup-2020:latest can be used to spin up a standalone server that will answer requests from the ic20 test application on http://<container-address>:<server-port>/.

Building the image can be performed from <repository>/docker by running docker build . --file Dockerfile --tag markl4yg/informaticup-2020:latest. However, this will not be required when the docker hub registry is available.

2.3 Running via. command line

From the directory: <repository>/docker/python, the application can be started by invoking python3 main.py.