Coder Social home page Coder Social logo

wiserl's Introduction

wiseRL

WiseRL是一个面向分布式的强化学习框架,如下图所示,通过分布式的数据采样,集中训练的方式实现分布式的强化学习算法。 image

  1. Runner 是主程序入口,负责从环境采样,调用远程的Agent实现分布式采样,集中训练。
  2. Agent是智能算法,通过调用平台的提供的智能算法,用户可以不用编写代码,方便进行智能算法进行训练,平台支持(DQN、PPO、DDPG、自博弈,多智能等算法)。

使用说明

  1. 主函数:通过makeRunner创建多个Runner启动,Runner可以自动运行在Ray集群中
if __name__=='__main__':
    runners = makeRunner(GymRunner,num=2)
    results =[]
    for runner in runners:
        ref = runner.run.remote()
        results.append(ref)
    ray.wait(results)

运行


pip install -e .
cd example
ray start --head --port=6379
python dqn.py

wiserl's People

Contributors

wiseworker avatar nyrus-y 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.