GithubHelp home page GithubHelp logo

arome / cogment-verse Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cogment/cogment-verse

0.0 0.0 0.0 9.6 MB

Library of Environments, Human Actor UIs and Agent implementation for Human In the Loop Learning & Reinforcement Learning

License: Apache License 2.0

Shell 2.66% JavaScript 10.35% Python 84.05% TypeScript 1.33% CSS 1.28% HTML 0.33%

cogment-verse's Introduction

Cogment Verse

Apache 2 License Changelog

๐Ÿšง A new major version of Cogment Verse is under develelopment in the next. Not all the algorithms and environments are available yet but it is fully operational. Do not hesitate to test it!

Follow and discuss the development in this Pull Request.

Cogment is an innovative open source AI platform designed to leverage the advent of AI to benefit humankind through human-AI collaboration developed by AI Redefined. Cogment enables AI researchers and engineers to build, train and operate AI agents in simulated or real environments shared with humans. For the full user documentation visit https://docs.cogment.ai

This repository contains a library of environments and agent implementations to get started with Human In the Loop Learning (HILL) and Reinforcement Learning (RL) with Cogment in minutes. Cogment Verse is designed both for practitioners discovering the field as well as for experienced researchers or engineers as a framework to develop and benchmark new approaches.

Cogment verse includes environments from:

Documentation table of contents

Getting started

Setup, Build and Run

  1. Clone this repository
  2. Install the following dependencies:
    • Python 3.9,
    • Node.JS v14 or above and npm,
    • parallel, on ubuntu it is installable using apt-get install parallel, on mac it is available through brew install parallel,
    • unrar, on ubuntu it is installable using apt-get install unrar, on mac it is available through brew install unrar,
    • swig, (required to install box2d-py), on ubuntu it is installable using apt-get install swig, on mac it is available through brew install swig,
    • virtualenv, installable using pip install virtualenv.
  3. ./run.sh build
  4. ./run.sh services_start
  5. In a different terminal, start the trials with ./run.sh client start <run-name>. Different run names can be found in run_params.yaml
  6. (Optional) To launch webclient, run ./run.sh web_client_start in a different terminal. Open http://localhost:8000 to join or visualize trials

Run monitoring

You can monitor ongoing run using mlflow. By default a local instance of mlflow is started by cogment-verse and is accessible at http://localhost:3000.

Human player

Some of the availabe run involve a human player, for example benchmark_lander_hill enables a human player to momentarily take control of the lunar lander to help the AI agents during the training process.

Then start the run

./run.sh client start benchmark_lander_hill

Access the playing interface by launching a webclient with ./run.sh web_client_start and navigating to http://localhost:8000

Play

The play run implementation can be used to have any actor play in any environment. 3 example run parameters are provided:

headless_play instanciates any agents and start a number of trials.

./run.sh client start headless_play

observe instanciates any agents and start a number of trials with a human observer through the webclient.

./run.sh client start observe

play instanciates let a human player play in a supported environment.

./run.sh client start play

They can be inspected and adapted to your needs in run_params.yaml:

List of publications and submissions using Cogment and/or Cogment Verse

  • Analyzing and Overcoming Degradation in Warm-Start Off-Policy Reinforcement Learning code
  • Multi-Teacher Curriculum Design for Sparse Reward Environments code

(please open a pull request to add missing entries)

Acknowledgements

The subdirectories /tf_agents/cogment_verse_tf_agents/third_party and /torch_agents/cogment_verse_torch_agents/third_party contains code from third party sources

cogment-verse's People

Contributors

air-sara avatar cloderic avatar jonathan-fisher avatar joshair avatar sagarkurandwad avatar saikrishna-1996 avatar vabdollahi 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.