OptHub Scorer
Project description
OptHub Scorer
OptHub Scorer is a worker program that scores a solution submitted to OptHub.
Requirements
- Python 2.7 or 3.5+
- Docker 1.12+
See also requirements.txt for dependent python packages.
Installation
$ pip install opthub-scorer
If you need a development snapshot, you can install it from the repository:
$ pip install git+https://gitlab.com/ec-competition/opthub-scorer.git
Usage
How to start a scorer runner
Login the docker registry where the problem image is stored.
$ docker login <registry>
Start a scorer.
$ opthub-scorer
Options
Parameter | Type | Default | Description |
---|---|---|---|
url | path | https://opthub-api.herokuapp.com/v1/graphql | URL to OptHub |
apikey | str | ApiKey | |
interval | int | 2 | Polling interval |
verify/no-verify | bool | True | Verify SSL certificate |
retries | int | 3 | Retries to establish HTTPS connection |
timeout | int | 600 | Timeout to process a query |
rm | Remove containers after exit | ||
quiet | Be quieter | ||
verbose | Be more verbose | ||
config | path | opthub-scorer.yml | Configuration file |
How to make a scorer
- Write an indicator program in your favorite language.
- Dockerize it.
- Push the docker image to DockerHub or somewhere else accessible from OptHub. For this purpose, OptHub hosts its own docker private registry.
- Register the image tag to OptHub.
See also example.
Author
Naoki Hamada (hmkz@s101.xrea.com)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
opthub-scorer-0.3.1.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for opthub_scorer-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8805cd69c0c991e58df80a79bbdd8143626bbd299037f3de3e0943d0516bd0c |
|
MD5 | 8ad7c1fc056458d80f83ac7229077938 |
|
BLAKE2b-256 | c3c5c41dd6778c01b8e67c61e1e53b885362eb260148e216bf477cf8cd22c13c |