Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Example of a reward webservice exposing the Ushiriki Policy Engine

License

Notifications You must be signed in to change notification settings

IBM/ushiriki-policy-engine-reward-service

Repository files navigation

ushiriki-policy-engine-reward-service

Example of a reward webservice exposing the Ushiriki Policy Engine to the API. The general framework uses blueprints to structure the existence of optional environments.

Dependencies

This code has been tested with Python3, although if previous versions are required, the code content should suffice. It is written in a modular manner so environments can be added at any time. When they are added, the yaml file must be revised to point to the module path of the new objects.

Installation

First clone or download the soure from the repository:

git clone https://github.com/IBM/ushiriki-policy-engine-reward-service

Ensure that all the required modules are included into the base version of requirements.txt

(To get all the dependencies you might have to check in your subdirectories cat */requirements >> requirements.txt)

pip install -r requirements.txt

Execution

Selecting the appropriate configuration file defining the environment you'd like to host..

PORT=8080 python webservice.py config.yaml

Citation

[Environment Reward Service]

@misc{pending,
  Author = {Sekou L Remy and Oliver E Bent},
  Title = {A Global Health Gym Environment for RL Applications},
  Year = {2020},
  Eprint = {arXiv:pending},
}

About

Example of a reward webservice exposing the Ushiriki Policy Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages