Git Product home page Git Product logo

openai-gym-ocaml's Introduction

OCaml binding to openai-gym

openai-gym is an OCaml binding for openai-gym open-source library. It is built as a client for the gym-http-api REST API.

To use the openai-gym package, you need to have a gym-http-api server runnung:

python3 gym_http_server.py

The documentation of the openai-gym package is available online or in the directory docs.

Install

Quick install with Opam

You can install openai-gym with the following command:

opam install openai-gym

Install from source with Opam

Opam can also be used to compile and install from the source directory. For that you first need to pin the source directory. So, from this directory, do:

opam pin add openai-gym .

Then you can install using the command:

opam install openai-gym

If the source files are modified, the packages must be reinstalled with the command:

opam reinstall openai-gym

Building from source

Prerequistes

To build from source, you will need to install the dependencies listed in the depends field of the *.opam files.

An easy way to get set up on most platforms is to use the OCaml package manager (https://opam.ocaml.org). Once opam is installed, you can just add the corresponding libraries:

opam install ocamlfind dune atdgen atd cohttp-lwt-unix ...

Compiling

To compile, do:

make

To test, do:

make test

To generate the documentation, do:

make doc

Make a new release

In order to do a new release, we have to do the following steps.

  1. Search and update the version number:
grep -r -e '\d.\d\d-dev' .
  1. Make sure that the documentation is up to date:
make webdoc
  1. Update the CHANGES.md file.

  2. Commit the changes.

  3. Create a new release on the github interface: https://github.com/IBM/openai-gym-ocaml/releases

  4. Create a new release of the opam packages.

git checkout master
git fetch --all
git merge --ff-only upstream/master
git push
  • Create a new branch
git checkout -b openai-gym-X.XX
  • Create the new packages from the old ones:
mkdir packages/openai-gym/openai-gym.X.XX
  • Update the opam files:
cp OPENAI-GYM_OCAML_DIR/openai-gym.opam packages/openai-gym/openai-gym.X.XX/opam
  • Update the url
emacs packages/openai-gym/openai-gym.X.XX/opam
  • Commit and push the changes
git push origin openai-gym-X.XX
  1. Once the pull request is accepted update the version number.

Contribute

Contributions and bug reports are welcome! To contribute please follows the instructions given in the file CONTRIBUTING.md.

openai-gym-ocaml's People

Contributors

gbdrt avatar mandel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.